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
[terminal]
Note: The machine architecture used by both parties must be the same when talking to each other using talk. After the other party gives the response talk command, both terminals will display
[Connect established]
Both parties can communicate in duplex mode. Both parties can input at any speed from the keyboard, and talk will display one line of your input on the screen of you and the other party. Quit talk.
Use mesg to reject and allow receiving packets
The mesg command allows or re
Sublime selecting tags and their contentsCtrl+shift+a Continuous Press two timesGit undo AddResets the specified file for staging area, consistent with the last commit, but the workspace remains the samegit reset [file]Undo CommitResets the specified file for staging area, consistent with the last commit, but the workspace remains the samegit reset [file]Reset staging area to workspace, consistent with last commitgit reset--hardView git historygit logExit Press the Q keyNpm-saveAnd save-dev can
the compressed file.-V Displays the instruction execution process or displays version information.-V Saves the file properties of the VMS operating system.-W in the file name if the version number, this parameter is only valid under the VMS operating system.-x-X does not save additional file attributes.-Y saves the symbolic connection directly, not the file that the connection points to, and this parameter is only valid under systems such as UNIX.-Z
Original post link: http://www.diguage.com/archives/8.html
XargsOrParallelRead the information from the standard input as a parameter, initialize the executable command, and then run the command once or multiple times. It can be executed in parallel.
SedAndAwkThese two commands are well-known and can be said to be the omnipotent machine for processing text files, and the speed is faster than Ruby or Python.
M4A simple macro processor is mainly used a
Summary of Common Unix commands...
Special key combinations:
CTRL + H delete a character from the command line.
CTRL + u delete a row from the command line.
Press Ctrl + D to exit the command and tell the shell that the input is complete.
Ls
Ls-l lists the file information in the directory in detail, sorted by file name.
Ls-T lists the file information in the directory, sorted by the modification date.
Ls-L
FreeBSD is an important branch of UNIX systems, and its commands are mostly common to Linux, and few of them are unique.
1:man online query man ls2:ls Viewing directories and Archives Ls-la3:ln creating a linked file ln-fs/usr/local/apache/etc/httpd.conf/etc/httpd.conf4:more page show more file names5:CD Switch Directory Cd/usr/local/apache6:mkdir creating a new directory Mkdir/usr/temp7:rmdir Deleting
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
UNIX ar commandsCommon options
After the source code file is compiled, the corresponding target file (. o file) is generated. Generally, the process of creating a static library is to package these. o files into a libXXXX. a file.The meanings of several common commands for ar commands are as follows:-R format: ar-r libXXXX. a 1.o 2. o Note: When the lib file does
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
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
In Unix/Linux applications, we generally want to run a program in the background, so we usually use at the end of the program to make the program run automatically. For example, we want to run mysql in the background:/usr/local/mysql/bin/mysqld_safe-user = mysql . However, many programs do not want to use mysqld, so we need the nohup command. How can we use the nohup command? Here we will explain some usage of the nohup command.
Nohup/root/start. sh
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 process. When the user returns to the text message
[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 in current directory TMPMkdir-m 777/TMP/ABC wi
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
in detail. Here I will give you a detailed introduction to make and its description file makefile.
Makefile file
The most important and basic function of make tools is to describe the interrelationships between source programs through makefile files and to automate the maintenance of compilation work. The makefile file needs to be written in a syntax that explains how to compile each source file and connect to build the executable file, and require
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
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
BKJIA: In this article, we will introduce six cool and practical Unix/Linux tools. From viewing the weather through your terminal to letting a system administrator teach you how to complete a difficult task, there is almost no clue. Interestingly, most of these tools were released decades ago! Please let me know ......
Mentoring dialogue: kibitz
Kibitz is a terminal tool mainly used by a "master" to help him/her "apprentice )". Essentially, it provide
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.