In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what the commonly used linux commands are, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
I believe that many developers, operators are using the linux operating system, because the vast majority of the servers are liunx systems.
The directory structure of Linux is a tree structure, and the top directory is root /. Other directories can be added to the tree by mounting, and they can be removed by unmounting them.
Let's take a look at common file directory manipulation commands:
Cd
Change directory, switch directories
Relative path: refer to the current directory to find, such as:
Cd.. / usr/local/src/
Absolute path: specified from the root directory, level-by-level recursive search, in any directory, you can enter the specified location such as: cd / etc/
Ls
Used to display the contents of the specified working directory (the contents of the current directory are listed without parameters.
Syntax: ls [option] [file or directory]
Example:
-rw-r--r--. Represents that the owner of the file has read and write access, and the group and others have read access only. "." On behalf of ACL permissions)
Pwd
Show the location of the working directory (show absolute path)
Mkdir
Create directory,-p recursive creation, used to create multi-level directory syntax: mkdir-p [directory name]
Cp
Copy, copy file or directory syntax: cp [option] [original file or directory] [destination directory]
Mv
Move, cut or rename, if the original file and target directory are in the same directory, it will be renamed, otherwise it will be cut
Syntax: mv [original file or directory] [target directory]
Rm
Remove, delete a file or directory
Syntax: rm-rf [file or directory]
Option:-r delete directory;-f enforce
This order had better be cautious and prudent.
Rmdir
Remove empty directories, delete empty directories (rarely used)
Syntax: rmdir [directory]
The above are all the contents of the commonly used linux commands, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.