Common Linux commands and common linux commands
1. User-relatedUseradd [user name] create a userPasswd [user name] change the password for the userSu-User Name SwitchingExit to the root user
2. Create files and directories(1) create a file: touch
Summary of several functions similar to Linux commands and summary of Several linux commands
The wc command is used to count the number of lines, characters, and bytes of text in the format of wc [parameter] text ".
-L only displays the number of
Common Linux commands (20) and common linux commands
When you use the-exec option of the find command to process matched files, the find command passes all matching files to exec for execution. However, some systems have limits on the length of
Common Linux commands (14) and common linux commands
The tail command writes the file to the standard output from the specified point. you can use the-f option of the tail command to conveniently check the changing log file. The tail content of the
Common Linux commands (8) and common linux commands
Linux touch commands are not commonly used. They are generally used to modify the file timestamp or create a new file that does not exist.
1. Command Format:
Touch [Option] File
2. command
Common Linux commands (9) and common linux commands
The cat command is used to connect files or standard input and print. This command is often used to display the file content, connect several files, or read and display the content from the
Common Linux commands (6) and common linux commands
The mv command is short for moving files. It can be used to move files or rename files. It is a common command in Linux and is often used to back up files or directories.
1.Command Format:
Mv
Common Linux commands (4) and common linux commands
The linux mkdir command is used to create a directory with the specified name. The user who creates the directory must have the write permission in the current directory, and the specified
Help for common linux commands and help for common linux commands
Command name: man
Purpose: help information of commands and configuration files (no absolute path is required)
Mainly view the name and search parameters
There are several types
Common Linux commands (28th) and common linux commands
The diff command is an important tool in linux. It is used to compare the content of files, especially files of different versions, to find the changes. Diff prints the changes of each line in
Common Linux commands (22) and common linux commands
The chmod command is used to change the access permissions of linux system files or directories. Use it to control access to files or directories. This command can be used in two ways. One is the
Summary of common linux commands and parameters (basic) and common linux commands
1. user's home directory (~) In linux, users all have their own home directories. you can place your own configuration files and other things. pwd: list the current
Help commands for common linux commands and common linux commands
1.TypeThe difference between built-in and external commands
2.BashEnter bash to use help in bash.
3.Help lsLs is an external command, help can only view the built-in command
Common Linux commands-file search command find, common linux commands
Command name: findCommand path:/bin/findSyntax: find [search range] [matching condition]Function Description: file search
ExampleFind/etc-name initFind the file init In the/etc
Common linux commands and linux commands
1. Network Parameter Setting command
1. ifconfig: Query and SET network card and IP network segment parameters
1.1 man manual Definition
DESCRIPTION Ifconfig is used to configure the kernel-resident
Common Linux commands and common Linux commands
If some commands are not commonly used, you can't remember them. Every time you use them, you need to query them. Here we record some commands:
(1) tar
Decompress:
Tar-xvzf filename.tar.gz unzip
Basic Linux commands and Linux commands
[Epeter @ localhost ~] $
Where: epeter is the user name; localhost is the current host name ;~ The broken wave number indicates that the current user directory is used (If yes, the slash indicates that the
Several common Linux commands and common Linux commands
Ls
Purpose: view files in the directory
Format: directly view the current directory by ls, or the ls parameter/directory name.
Parameter:-l View Details
-A: Show Hidden Files
. Indicates the
Basic Linux commands and Linux commands
Cd-> transform path // file usually exists under/var/path, var can be modified storage disk
Ls-> list all properties of hidden and Related Files # ls-al
# Ls-al
-Rwxrwxrwx 1 root 293 2016-02-23 test
File
Common Linux commands and common linux commands
1. Common commands
Ls displays the files and folders in the current directory;
-Ltr displays detailed information about files and folders in chronological order. Only folders and files are displayed
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.