In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what the common commands of Linux 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!
1. Linux common commands
1. After logging in to linux through a remote tool, the location is the home directory (home directory) of the currently logged in user.
two。 The symbol of the home directory is represented by ~.
The file system of 3.linux is a tree structure.
The tree root of the linux file system becomes the root directory, denoted by the symbol "/".
Use the symbol ".." in the linux file system. Represents the parent directory.
Use symbols "." in the linux file system. Represents the current directory.
In the linux file system, if the file uses "." At the beginning, it means to hide the file
There are two ways to express the path of linux, one is the absolute path (the path that begins with "/"), the other is the relative path.
4. Command cd (change directory): jump to another directory
5. Command ls: see what is contained in the directory
Ls-l: show details
Ls-a: show hidden files
6. Command pwd: displays the current location of the
7. Command clear: clear the screen
/ / permissions
8. Command mkdir: create a folder
Mkdir-p: recursively create a parent folder
9. Command touch: create a blank file
10. Command more: view the contents of the file
11. Command rm: delete a file
Command rmdir: delete folder
Command rm-rf: delete files (folders), no matter how deep they are, without prompting
twelve。 Command cp (copy): copy files, and another function is to create new files
13. Command mv (move): move files, and another function is to rename
* *
VI operation:
(1) when using the command vi F1 to enter, enter into the vi editor and be in a read-only state (only read but not write)
(2) press the letter "I" (insert) or "a" (append) to enter the editing state
(3) press the "Esc" key on the keyboard, and then press Shift+:, to enter the command state
If you enter the command wq, it means to save and exit
If you enter the command Q! Which means that the exit is not saved
* *
Linux permissions are represented by 9-bit characters, rwx rwx rwx
Where r means read permission, w means write permission, x means execution permission,-means no permission
These 9-bit characters, one for each 3-digit group, are divided into three groups.
The first group represents the permissions of the creator
The second group represents the permissions of the group to which the creator belongs.
The third group represents the authority of others.
Permissions can also be represented by numbers. Rwx is represented by the number 4-2-1-7.
The default permission for newly created files is 644; the default permission for newly created folders is 755.
Command chmod: modify permissions. The three groups use u, g and o respectively to indicate that they are authorized to use "+" and remove permissions to use "-".
Chmod uplix F1 / / indicates that the creator of the file F1 increases the execution rights
Chmod Omurr F1 / / indicates that someone else in the file F1 has been removed from reading.
The above is all the contents of this article "what are the common commands of Linux?" 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.