In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Command ls-- to view the contents in the folder example: ls / opt / / check which files are in the opt directory in the root directory. Ls a * / list all files in the current directory that begin with the letter a ls- l *. Doc / / give all files ending in .doc in the current directory 2. Command cp-- to copy the file cp afile afile.bak / / copy the afile file to the current directory, by the way, the file name is afile.bakcp afile / home/bible/ copy the file afile from the current directory to the / home/bible/ directory cp * / tmp/ / copy all the unhidden files in the current directory to the / tmp/ directory cp- a docs docs.bak / / recursively copy the current directory Copy the docs directory to the current directory as the new directory docs.bak Keep file properties And copy all the files. Including hidden files beginning with a period 3, commands mv-- to move and rename files mv aflie bfile / / rename the afile in the current directory to bfilemv afile / tmp/ / move the afile in the current directory to the / tmp/ directory 4, commands rm-- to delete files and directories rm afile / / delete files afile directly enter does not delete rm * / / delete all files in the current directory (no hidden files) The rm command does not delete the directory rm-rf domed// deletes the domed directory and all the contents it contains rm-ia* / / deletes all files under the current directory that begin with the letter a, and prompts the user to confirm 5. Command cd-- to switch the directory cd ~ switch to the home directory cd / tmp to the home directory / tmpcd dir to the current directory dir directory cd / switch to the root directory cd. Switch to the next directory, cd.. Switch to the upper secondary directory cd ~ switch to the user directory, such as root user, then switch to / root 6, command mkdir-- to set up a directory mkdir create a directory (folder) mkdir directory name / create a new directory create multiple directories at one time: mkdir directory name 1 directory name 2. Create multiple nested directories at one time: mkdir-p directory name 1 / directory name 2 / directory name 3.7, command touch-- create text touch file name / / create new text file create multiple text files at one time: touch file name 1 file name 2. Note: separate multiple files with spaces. 8. Command cat-- to display the file contents cat to view the file name cat / proc/cpuinfo view CPU information cat / proc/meminfo view memory information 9, command Rm-- to delete the directory Rm- r / opt/abc delete ABC10 under opt, Command shutdown-- shutdown restart operation shutdown- h now shutdown operation poweroff (forced shutdown before 5.0min) init 0shutdown-h + minute "prompt content" delayed shutdown shutdown- h 5 "guanji" example ctrl+c cancels restart operation: shutdown- r nowrebootinit 6shutdown-r + minute delayed restart ctrl+c Shutdown-c cancels delayed operation exit exits the current command operating environment
11. User information logged in by who system
12. The list of users logged in by the system shows the commands being executed
13. Pwd displays the detailed directory address of the current directory
Note: pwd
14. Init command
Init 0 / / shutdown
Inir 6 / / restart
15. Id to view the current user
Id tom views some information about tom users.
16. Useradd tom creates tom users
17. Wget plus network software package address / / go to the network to download the software package
18. Passwd tom modifies or creates a new password
19. Umount / / Uninstall
Note: umount / mnt
20. Ls-ld / / displays the properties of the current directory
21. Clear clears the current page
22. Df-hT
Note
23. Date displays the current date and time
Turn off and open the network card
Ifconfig ethx up / / enable ethx network card
Ifconfig ethx down / / close the ethx network card
Turn off the firewall and SELinux
Permanent shutdown
Vim / etc/sysconfig/selinux
Vim / etc/selinux/config
Change SELINUX=enforcing to SELINUX=disabled
Temporarily shut down SELinux
Setenforce 0
Permanent shutdown
Systemctl disable firewalld
Temporarily Closed
Systemctl stop firewalld
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.