Command Xiaoming refers to zookeeper
Passwd Change User Password
Pwd print Current Directory
Cd change Directory
Ls to list files in the directory
Wildcards wildcard * matches any number of characters
Wildcard? Match a single character
Type of the file to be printed
Cat display file content
Pr display file content
Pg page displays the file content on one page at a time
More display file content on one page at a time
Clear Screen Content
Cp copy
Chown Modify file owner
Group where the chgrp file is modified
Chmod
Rm deletes a file from the system
Mv rename a file
Mkdir create directory
Rmdir Delete directory
Grep mode match
Grep command for extending regular expressions
Find is used to locate files or directories.
> Append to the end of a file
> Redirect to create or overwrite files
| MPs queues are used to sort commands together.
| Logical or
& Execution in the background
& Logic and
Date: displays the system date and time.
Echo writes the string to the standard output
Sleep execution is interrupted within the specified number of seconds.
Wc calculates the number of words, rows, and characters in a file.
Start of viewing the file in head
Tail view the end of a file
Diff compares two files
Sdiff compares two files side by side
Spell checker
Lp, lpr, enq, qprt print files
The lpstat system prints the queue status.
Enable to enable or start the print queue
Disable or stop a print queue
Cal displays a calendar
Who displays the System user date
Who for w Extension
Whoami displays $ LOGNAME or $ USER environment variables
Who am I displays the login terminal login date/time and location
F, finger information about the login user, including users. plan. project
Two talk users have a split-screen conversation.
Write displays a message on a user's screen.
Wall displays a message on all user screens.
Rwall displays integrated information to all users on the remote host.
Rsh remsh executes a command or logs on to the remote host.
Df file system statistics
Ps information about the currently running process
Netstat displays the network status
Vmstat displays the virtual memory status
Iostat displays the input/output status
Uname: name of the current operating system and machine information
Sar system activity report
Basic File Name of the basename string parameter
Man display online reference manual
Su switches to another user
Cut writes the selected characters
Programming Language for awk parsing characters
Sed programming language for character replacement
Vi start vi Editor
Start emacs editor
Pwd displays the current directory pwd
Ls: List objects in the specified directory. The default format is ls [-option] file l.
A. Show all files, including hidden files (names starting)
R: Display files and all subdirectories
F. display the file (followed by *) and directory (followed /)
D and l options are used together to display the directory name rather than its content
Cd change current path cd [Directory]
For example: cd .. back to the parent directory
Cd returns the root directory of the current user
Man command to view usage of other commands man command
History: displays the command history used in the current window.
Ailas displays the alias for the commands of the current user
Tar file archive tar [option] [device] [block] File
For example:
Tar cvf test.tar * archives all files in the current directory
Tar tvf test.tar check the information of test.tar
Tar xvf test.tar release the archive file test.tar
R attachment archive; x extraction file; t display file
U is attached to archive and old files are deleted at the same time; c is used to create new files
V: display the processed file name. w. Before processing the file, ask the user to confirm
F. Use the specified file name as the file name.
Bn reads and writes n blocks each time. The default value is 1 and the maximum value is 2.
M sets the time when the new file is modified to the time when it is obtained.
O The UID and GID of the files obtained below the tar command
Cp file copy cp [-p] [-r] File 1 [file 2...] when the target I overwrites an existing file, a prompt is displayed. If the answer is y, overwriting is performed. If the answer is y, the request is aborted.
P not only copies file content, but also modifies time, access mode, access control table,
But do not copy UID and GID
R if the file name is a directory, copy all the files and subdirectories in the directory and their
File, the target must be a directory
When rm deletes a file or the rm [-f] [-I] file in the directory... f, no prompt is given for deleting the file.
R recursively deletes directories and all their subdirectories.
I Prompt before deleting the file
Df [-t] [File System] df-t
Ps display process information ps [-efl] [-t tables Table] [-u User table] [-g group table] e display all processes that are running
F. All information is displayed. l a long list is generated.
T displays the specified Terminal Process; u displays the specified user process.
G: displays the processes in the specified group.
Grep searches for the specified information in the specified file. grep [Option] mode [file...
For example:
Grep 'memset '*
Find the Row B containing memset in all files and display the block number. c Only displays the total number of lines containing the mode in each specified file.
In I mode, letters are case-insensitive;
H does not display the file name in the include mode on this row
L only display the file name in the include mode; n indicates the row number of the row in the display mode.
S: If the specified file does not exist or is unreadable, no error message is displayed.
V: Display All rows with no mode included
Vi command status for creating and editing file vi file names:
K, j, h, l: top, bottom, left, and right; 0: Beginning of a row; $: End of a row
I, I: insert command, I insert the first line at the current cursor
A, A: APPEND Command. a is appended after the current cursor, and A is appended at the end of the row.
O, O: Open the command, o opens a line under the current line, O inserts a line on the current line
R, R: Replacement command. r replaces the character at the current cursor, and R replaces the character at the cursor.
Number s: Replace the specified number of characters
X: Delete the character at the cursor. dd: Delete the current row. d0: Delete the first half of the cursor.
D $: Delete the second half of the cursor; ctrl + f: Flip; ctrl + B: flip
G: End of the file; number G: Row specified by number
/String to find the string; n to continue searching; N to continue searching in reverse direction
% Find the corresponding parentheses; u cancel the last operation
Ex command status:
: Set number display row number: set smd display status
: 0 file beginning: copy 7 copy: del Delete
: 1, 5 move 7 blocks
: 1, $ s/string1/string2/g search string1 and replace it with string2
: Wq! Disk logout: q! Force exit
Ln sets the link of the file ln-s oldname newname
For example:
Ls-s/tmp/s16 S16
The/tmp/s16 shortcut S16 is created in the current directory.
Cc C language compiler cc [-g]-o target file source file