Read about linux terminal commands cheat sheet, The latest news, videos, and discussion topics about linux terminal commands cheat sheet from alibabacloud.com
protected] ~]# date-s 12:00Friday, January 01, 2016 12:00:00 CST[Email protected] ~]# date +%f2016-01-01[Email protected] ~]# date +%y-%m-%d2016-01-01[Email protected] ~]# date +%h:%m12:01[Email protected] ~]# date +%t12:01:39[Email protected] ~]# date +%f%t%t2016-01-0112:02:20Linux See Help information1.-h2.--help viewing external command Help information3. Help view Internal command assistance information4.man View detailed Help informationFor example:[Email protected] ~]# shutdown--help[Emai
directive: SSH [email protected]Case: wangmingdemacbook-pro:~ xxxxxxxxxx$ ssh [email protected]The authenticity of host ' xxxx.net (xxx.xxx.xxx.xxx) ' can ' t be established.RSA key fingerprint is 13:82:21:f3:47:ac:15:44:f5:d0:c4:65:a0:5c:cc:06.Is you sure want to continue connecting (yes/no)? YesWarning:permanently added ' xxxx.net (xxx.xxx.xxx.xxx) ' (RSA) to the list of known hosts.[email protected] ' s password:The following operation instructions are the same as the putty.Use
is located and before it, and moves the cursor to the next character
Alt+t
Swap position of current and previous words
Alt+u
Convert the current word to uppercase
alt+l
Convert the current word to lowercase
Alt+c
Capitalize the current vocabulary into the first character
Ctrl + V
Insert special characters, such as Ctrl+v+tab join TAB key
esc+t
Reverses the position of the cursor and
CTRL + C terminates the current commandCTRL + L Clear screen (cursor back to the first line)CTRL + D exits the current terminal (or Exit,logout)CTRL + U will be all characters from the front of the cursorCtrl + K Delete all characters after cursorCtrl + S locks the current command terminal (pressing any key on the keyboard does not respond, the command entered during the lock is valid after unlocking)CTRL +
Programmer in linux useful terminal command file encoding conversion tool enca: enca-Lzh_CN-xUTF-8file to convert file encoding to quot; UTF-8 quot; encoding enca-Lzh_CN-xUTF-8 lt; file1 gt; file2 if you do not want to overwrite the original file, you can open the ISO file like this...
The terminal command file encoding and conversion tool enca used by progra
Common commands:
Table 1-1
Command
Description
Directory and file Processing:Before we explain, we'll get to know a couple of funny symbols.. : Small point live in the present, namely the current directory. For example:./jie_work executes the jie_work file in the current directory.. : Run up to two points, both to the current top level directory. For example, a command CD. Modify the current working directory to the previou
Tag:try command execution javabspmain rgscomrorglin public class test{ public static void main (string[] args) { try { String shellstring =" Lame-b 16/java/5/a.wav "; string[] cmd = new string[]{"sh", "-C" , Shellstring}; Process process = Runtime.getruntime (). exec (cmd); Process process=runtime.getruntime (). EXEC ("Lame-b 16/java/5/a.wav"); Lame your. wav file, easy version Process.waitfor (); Block until the above command finishes, be sure to close the file be
permissions; =--set permissionsFile: r--read-only permission (read), w--Write permission (write), x--Execute permission (execute)Directory: r--allows files and subdirectories under the column directory; w--allows you to generate and delete files under directories; x--allow access to the directory(2) chmod xxx File/directory nameof which: execute=1;write=2;read=4X value: 0--does not have any permissions (common); 2--can only be written (uncommon); 3--can only be written and executed (uncommon);
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.