As you know, it is sometimes necessary to terminate all Oracle processes or a specified set of Oracle processes. When the database ldquo; locks rdquo, and you cannot enter
As you know, it is sometimes necessary to terminate all Oracle processes or a specified set of Oracle processes. When the database ldquo; locks rdquo, and you cannot enter
As you know, it is sometimes necessary to terminate
Linux/unix reads all file names under the specified directory call the system function Opendir () and readdir to traverse all the files under a specified directory under Linux/unix and output the file name. The implementation code is as follows:
*
author:acb0y
FileName:main.cpp
Create time:2011 August 1 0:41:18
ver
Commands for interchange of date, time, and Unix timestamps in Linux Command lines
At work, you often need to get the current Unix timestamp or convert the given timestamp to a date format that we can recognize, on the linux Command Line terminal, you can easily solve the problem by using several commands.
1. convert a
can use the nohup command. This command can continue running the corresponding process after you exit the account/Close the terminal. Nohup means not to suspend (n ohang up ).
The command is generally in the form of nohup command
Use the nohup command to submit a job
If you use the nohup command to submit a job, all the output of the job is redirected to a file named nohup. out by default, unless the output file is specified separately:
Nohup comman
[Syntax]: mkdir [-M mode] [-p] Directory name[Note]: This command is used to establish the directory, the access mode of the directory is determined by the mask (umask), requires write permission to its parent directory, the UID and GID of the directory for the actual UID and GID-M Create directory in specified access mode-P establishes all of its nonexistent parent directories when the directory is created[Example]:mkdir tmp creating subdirectories i
I am recently working on an iPhone text message upload and download project. After the text message is downloaded, I need to restart the SMS app to view the downloaded text message.
However, in reality, it is impossible for users to restart the sms app, and all of them can only achieve the same effect in the code.
Use unix commands to end the text message proce
1 PackageAlgorithms.util;2 3 /******************************************************************************4 * Compilation:javac Directory.java5 * Execution:java Directory directory-name6 * Dependencies:Queue.java Stdout.java7 * 8 * Prints out all of the files in the given directory and any9 * subdirectories in Level-order by using a queue. Also PrintsTen * out their file sizes in bytes. One * A *% java Directory. - * - ************************
When you are maintaining Oracle, you can use some Unix operating system commands to view system-related information under various operating systems.
Memory
-------
Aix:bootinfo-r
LSATTR-E-LMEM0
/USR/SBIN/LSATTR-E-L sys0-a Realmem
Or use a tool as "Topas" or "Nmon" (These are utilities)
Linux:cat/proc/meminfo
/USR/SBIN/DMESG | grep "Physical"
Free (the free command)
HP:/usr/sam/lbin/getmem
grep me
Article title: The most common network commands in Linux and Unix systems. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source and other basic categories are undoubtedly, Linux and Unix are the most powerful command line operating systems. Although we can als
between files and devices
File: Determine the type of a document
Stat: View file status
TAC: Output The file contents from the last line, and the cat output is the opposite
Shuf: Random selection of data on a file by row
Comm: Compare an ordered file by row
HD and BVI: Output or edit binary files
Strings: Viewing the contents of a binary file
TR: Character translation or manipulation of characters
Iconv or Uconv: converting encoded strings
Split and Csplit: Partitioning file
CPU time of the process)
PRI
Process Priority Scheme. A large number indicates a lower priority.
Ni
Nice value of the process, which is associated with the priority scheme. Enabling a process "nicer" means lowering the priority of the process so that it does not use up CPU time
SZ
The amount of virtual memory requested by the process. This is a good indicator of the system's memory requirements.
Tty
Start the terminal of the process (or parent pro
Introduction: Most Java programmers use some sort of tracking system to track potential bugs and problems with code in development. However, multithreading and multi-platform environments can generate a lot of puzzling trace data. In this article, software engineer Daniel Would provides some tips to help you understand the trace data that is generated in a complex application. You will learn how to use the Open source logging package log4j to generate a log file that contains rich information. Y
Hp unix has maintained a high market share in large enterprise-level hosts. For its top commands, I have read some documents before. Here I will summarize how to analyze the contents.
1.TopThe command syntax is as follows:
Top [-s time] [-D count] [-q] [-u] [-H] [-N number] [-f filename]
-S time: set the screen refresh latency, in seconds. The default value is 5 seconds.
-D count: set the number of screen r
Htop: improved version of top
Last: logon history
W: Current Login User
ID: view User/group representation Information
SAR: Tools for viewing historical system statistics
Iftop or nethogs: view the network utilization of the socket or process
SS: View statistics
Dmesg: startup or system error message
(Linux) hdparm: displays or sets disk parameters.
(Linux) lsb_release: view the release version of the Linux System
(Linux) lshw: View hardware information
Fortune, ddate, and SL: It de
Watch: regularly repeat Linux/Unix Commands
The server administrator must maintain the system and maintain updates and security. Run a large number of commands every day. Some system processes record logs. These logs are constantly updated. To check for these updates, you must execute the command again. For example, to read a log file, you need to use
viewing hardware information;
Fortune,Every time you run this command, an interesting sentence or an interesting Q A will be given. You can learn English, enjoy and entertain yourself! Haha
SL,This command is very interesting. You can get a steam locomotive directly. Who can play!
Sudo !!,Execute the last command as the root user. This is very useful! Strongly recommended...
Cat You can create a one-time TCP socket link;
Tree,Present the current directory and
:-B Display block number-C displays only the total number of rows in each specified file that contains the patternLetters in-I mode are case insensitive-H does not display the file name of the containing pattern on the line-L show only filenames that contain patterns-N Displays the line number of the line in which the pattern is-s Specifies that the file does not exist or is unreadable without prompting for an error message-V Displays all rows that do
Common commands for clearing disk space in Unix/Linux
Here we recommend several common methods for clearing disk space in Unix/Linux:
Method 1:
Find./-name "*. log *"-exec echo ">" {}\; | sh
This command searches for the files ending with ". log" in the current directory and clears the files. This command is suitable for long-standing log and cannot be deleted di
Label: Ar strong SP Div on amp BS res File
Collect the decompressed commands here and check them now. Haha
. Tar
Unpack: Tar xvf filename.tarPackage: Tar CVF filename.tar dirname(Note: tar is packed, not compressed !)---------------------------------------------. GZDecompress 1: gunzip filename.gzDecompress 2: gzip-D filename.gzCompression: gzip filename.Tar.gzDecompress: Tar zxvf filename.tar.gzCompression: Tar zcvf filename.tar.gz dirname-----------
After installing the mobile terminal found ping command, the route and other commands can not be used, prompt command not found.Workaround: Install the support packageShell-cmds Package: Contains Killall,mktemp, Renice, Time,which commandNetwork-cmds Package: Contains Arp,ipconfig,netstat,route,traceroute commandInetutils Package: Contains FTP,INETD,PING,RLOGIN,TELNET,TFTP commandAdv-cmds Package: Contains FINGER,FINGERD,LAST,LSVFS,MD,PS commandMobile
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.