Linux _ familiar with common Linux commands and linux commands
Man: at any time, if you are not sure about a command line, you can enter "man + command" to understand what this command can do. Ls: List Directory content. Pwd: display the full path of the current working directory on the terminal. Cd: to change your current directory. Mkdir: Create a new directory. Cp: copy or rename a file. Mv: Move a file. Find and locate: Search for files. Kill: Quickly shut down a process. Passwd: change the password. -9 indicates that the process is forced to immediately stop the md5sum: Calculate and verify the MD5 information signature history: query the history command. Sudo :( super user do) command allows authorized users to execute commands of super users or other users. Touch: Create a new file, or update the file access and modification time to the current time. Chmod: Modify the object ACL. Chown: Change the file owner and user group. Apt: APT is an advanced Package Manager developed for Debian systems (such as Ubuntu and Kubuntu). On the Gnu/Linux system, it automatically and intelligently searches, installs, upgrades, and solves dependency problems for packages. Find: find file or folder command: find/-name filenamechkconfig: chkconfig -- list | grep vsftpd indicates the level at which chkconfig vsftpd on chkconfig -- list | grep vsftpdps-aux | grep fiefox displays the status of all processes-ef views Process Information netstat-tp # view network connection commands
Service -- status-all # view system service status
What should I learn after linux is familiar with Common commands?
10 tips for learning Linux
I. Starting from the basics
2. Linux commands must be learned
3. select a good tool book
4. select a suitable Linux release version
5. Develop and work in the command line
6. select a suitable Linux community
7. diligence in practice
8. How to get online help
9. Get help in the Linux Forum
10. Learn professional English
Common commands in linux
Just write it.
Common linux commands (BASICS)
1. man provides help explanations for familiar or unfamiliar commands
For example: man ls, you can view the ls-related usage.
Note: Press q or ctrl + c to exit. in linux, you can use ctrl + c to terminate the current program.
2. ls view the directory or file owner * and list the files under any directory
Eg: ls/usr/man
Ls-l
A. d indicates directory. If it is a "-", it indicates a file. If it is l, it indicates a connection file (link)
B. Permission for file or directory permission. Read (r), write (w), and run (x) respectively ).
3. Copy files using cp
Eg: cp filename1 filename2 // copy filename1 to filename2
Cp 1.c netseek/2.c // copy 1.c to the netseek directory and name it 2.c.
4. rm delete files and directories
Eg: rm 1.c // Delete the. c file.
5. Remove the directory or change the file name.
Eg: mv filename1 filename2 // rename filename1 to filename2
Mv qib. tgz ../qib. tgz // move to the upper-level directory
6. Change the current directory pwd on cd to view the complete path of the current directory
Eg: pwd // view the current directory path
Cd netseek // enter the netseek directory
Cd // exit the current directory
7. cat, more command
Displays the content of a file. The two commands are different: cat prints the file content all the time, and more is displayed on the split screen.
For example; cat> 1.c // You can paste the code into the. c file and press ctrl + d to save the code.
Cat 1.c or more 1.c // you can view the content in it.
Gcc-o 1 1.c // compile 1.c into the. exe file. We can compile the Code with this command.
8. Modify the chmod command permission usage: chmod one-digit octal number filename.
Eg: chmod u + x filenmame // you only want to run the command for yourself.
// U indicates the file owner. g indicates the group of the file. O indicates others; r table readable; w table writable; x table can run
Chmod g + x filename // the same group of people to execute
9. clear, date command
Clear: clear screen, equivalent to cls in DOS; date: displays the current time.
10. mount a hardware device
Usage: mount [parameter] device load point to be loaded
Eg: mount/dev/cdrom
Cd/mnt/cdrom // enter the cd directory
11. su switches to another person's identity without logging out.
Usage: su-l user name (if the user name defaults, the user name is switched to the root state)
Eg: su-l netseek (switch to the netseek user and the user will be prompted to enter the password)
12. whoami, whereis, which, id
// Whoami: confirm your identity
// Whereis: queries the directory where the command is located and the directory where the help document is located
// Which: query the directory where the command is located (similar to w ...... the remaining full text>