In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1 、 ls-list
Ls enumerates the contents of the current working directory (files or folders), just as you open a folder in GUI to see the contents
2 、 mkdir- MakeDirectory
Mkdir common a new directory, new directory
3. Pwd-Print Working Directory
Pwd displays the current working directory
4. Cd-Change Directory
For the meeting currently running on the terminal, cd sets the given folder (or directory) to the current working directory
5. .rmdir-RemoveDirectory
Rmdir deletes the given directory.
6. Rm-Remove
Rm deletes a given file or folder, which can be deleted recursively using rm-r
7. Cp-Copy
The cp command copies files or folders, and you can use the cp-r option to copy folders recursively.
8.mv-MoVe
The mv command moves the file or folder and renames the file or folder if it exists in the current working directory.
9. Cat-concatenate and print files
Cat is used to view the contents of a file on standard output (monitor or screen).
10.tail-print TAIL (from last) >
Tail displays the last 10 lines of a given file on standard output by default, and you can use tail-n N to specify that the last N lines of the file are displayed on standard output.
11. Lesson-print LESS
Less prints the contents of the file by page or by window. It is very useful and efficient when viewing large files that contain a lot of text data. You can use Ctrl+F to turn forward and Ctrl+B to turn backwards.
12.grep
Grep "" searches the given file for the specified string. Grep-I "" ignores the case of the string when searching, while grep-r "" recursively searches for the specified string in the files in the current working directory.
13.Find
This command searches for files that match the criteria at the given location. You can use the-name option of find-name for case-sensitive searches and find-iname for case-insensitive searches.
14.tar
The tar command creates, views, and extracts tar compressed files. Tar-cvf creates the corresponding compressed file, tar-tvf to view the corresponding compressed file, and tar-xvf to extract the corresponding compressed file.
15.gzip
The gzip command creates and extracts gzip compressed files, and you can also use gzip-d to extract compressed files.
16.unzip
Unzip decompresses the gzip document. Before decompressing, you can use the unzip-l command to view the contents of the file.
17.help
-- help lists all available commands on the terminal, and you can use the-h or-help options of any command to see the specific usage of the command.
18. Whatish-What is this command
Whatis uses a single line to describe a given command.
19. Man-Manual
Man displays a manual page for the given command.
20.exit
Exit is used to end the current terminal session.
21.ping
Ping sends packets to ping remote hosts (servers), commonly used to detect network connections and server status.
22.Whoa-Who Is logged in
Who can list the user name of the current login.
23.sue-Switch User
Su is used to switch between different users. Even if you don't use a password, the superuser can switch to another user.
24.uname
Uname displays important information about the system, such as kernel name, hostname, kernel version, processor type, and so on, all of which can be viewed using uname-a.
25. Free-Free memory
Free shows the system's free memory, occupied memory, available swap memory, and so on. Free-m converts the units in the result to KB, while free-g converts to GB.
26.df-Disk space Free
Df looks at the disk usage in the file system-the storage space used and available on the hard disk, as well as other storage devices. You can use df-h to display the results in a human-readable manner.
27.ps-ProcesseS
Ps shows the running process of the system.
28. Top-TOP processes
By default, the top command will show the processes that take up a large amount of CPU according to the usage of CPU. You can use top-u to check the ranking of a user's CPU usage.
29.shutdown
Shutdown is used to shut down the computer, while shutdown-r is used to restart the computer.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.