The following describes the most common Linux commands for linux cd.
Linux cd commands are the most common commands in linux. We need to use these commands almost all the time.The cd command is also available in DOS. It has the same functions as the
1. What are the file management commands on Linux? Common usage and related examples.Common scenarios include cp, mv, and rm.Cp [OPTION] source dest // CopyOption:-I: indicates whether to overwrite the source file. If the source file is copied and
Command:(1) File system relatedDirectory ManagementFile ManagementFile ViewFile editing(2) System Management relatedDirectory-related commands:Current directory or working directoryHome directory: HomeRoot:/rootNormal User:/home/username~: User's
Beginner Linux may appear to forget the command, this time should be a few common commands to write down, so that every day can knock, the days will be a long time in the mind has a deep impression. Here is my record of the common Linux commands, as
⑴, directory view command lsLS: Displays files in the current directory-L: Lists the files in the current directory and displays their related properties-A: Displays all files in the current directory that contain hidden files-A: Displays the
Three. Archive tool
Tar file Packaging
(1) TAR-CVF Shell.tar shell/ Package The Shell directory together with the files under it Shell.tarC: instruct tar to create an archive V: to display the execution of a command F: The file name
1. Modify the host name:# hostname Bigdata-cdh01.ibeifeng.com# vi/etc/sysconfig/network2. Turn off the mail feature of the Linux system automatically prompt:echo "unset mailcheck" >>/etc/profile3.ssh Password-Free login user home directory:CD.
ls [-ALIHD] file directory query the contents of the directory:-A: Show all files, including hidden files;-L: Show file details;-I: Display inode;-h: humanized display file size;-d: View Directory propertiesDirectory processing commandsmkdir [-MP]
1① command line switch graphical interface: StartX &② display text conversion command line input: Localectl list-localesLocalectl Set-locale Lang=zh_cn.utf8 (Vice-en-us) View language locale③ View the shell type used:"#echo $SHELL2①SSH Protocol
Linux Basic command Finishing (iii)-----------Process and VimFirst, the process1. View the processPS: Intercepts the state of the program running at a point in timeA: All the processesX: Background processU: Effective user-related processes (common
After the system is installed, you can practice it now.
View CPU Information command: LSCPU 650) this.width=650; "Style=" border-style:none; Background-color:rgb (255,255,255); "alt=" Qq20170715085155.png "src="
Please copy the/etc/init.d/iptables to the/root/directory and rename it to Test.txt:Cp/etc/init.d/iptables Test.txtMV Iptables Test.txt
Open Test.txt with vim and set line number:Vim Test.txt: Set Number
Move down, up, left, and right 5
First, Ptree: View the file directory hierarchySecond, pgrep process name: can view process IDThird, Chkconfig--list: Check the service open status; Chkconfig--list |grep process Name: view the specified process;Chkconfig--level 2345 sshd on/OFF:
1. Man helps explain commands you are familiar with or unfamiliar withEg:man ls to view LS-related usageNote: Press the Q key or CTRL + C to exit, under Linux you can use CTRL + C to terminate the current program run.2. LS View the directory or file
In Linux systems, the simplest way to back up a document is CP, but when the number of documents is large, the CP becomes overwhelmed and consumes too much hard disk resources. In this case, the best way is to compress and archive. The following is
3. File backup and compression commands:(1) bzip2 command: Used to compress files. bzip2 file name, suffix bz2. Unzip to: BUNZIP2 file name. bz2(2) Gzip command: Use gzip to compress files. gzip file name, and the suffix is gz. Unzip to: Gunzip file
1. Commands for managing files and directories:(1) Pwd:print working directory (print working directory), when entering PWD, requires the Linux system to display the current location.(2) CD command: The CD command is used to change the directory in
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.