--linux Basic Command Review of Hadoop

Source: Internet
Author: User
Tags clear screen

Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/45769461

1. After logging into Linux via Remote Tools, the location is the home directory of the currently logged in user.

2. Symbols for home directories are represented by ~.
The 3.linux file system is a tree structure.
The root of the Linux file system is rooted, denoted by a symbol "/".
Use the symbol "..." in the Linux file system Represents a parent directory.
Use symbols in the Linux file system "." Represents the current directory.
Linux file system, if the file uses "." Start, it means hidden files
There are two ways to represent Linux, one is absolute (the path begins with "/"), and the other is a relative path
4. Command CD (change directory): Jump to another directory
5. Command ls: See what is contained in the directory
Ls-l: Show more information
Ls-a: Show hidden files
6. Command pwd: Displays the current location of the
7. Command clear: Clear screen
Permissions
8. Command mkdir: Create a folder
Mkdir-p: Create a parent folder recursively
9. Command touch: Create a blank file
10. Command more: View the contents of a file
11. Command RM: Delete files
Command rmdir: Delete a folder
Command RM-RF: Delete the file (clip), regardless of the level of depth, delete all, and do not give a hint
12. Command CP (copy): Copy file, another feature is to create a new file
13. Command MV (move): Moving files, there is also a function is to rename
*********************************
VI Operation:
(1) When using the Command VI F1 carriage return, entered the VI editor, in a read-only state (can not write);
(2) Press the letter "I" (insert) or "a" (append) to enter the editing state;
(3) Press the "ESC" key on the keyboard, then press shift+: To enter the command state
If the input command Wq, it means to save the exit;
If you enter a command q! means not to save the exit;
*********************************
Linux permissions are represented by 9-bit characters, rwx rwx rwx
In this case, R is the Read permission, W means write permission, X is the Execute permission,-Indicates no permission

This 9-bit character, each 3-bit group, is divided into 3 groups.
The first group represents the rights of the Creator;
The second group represents the permissions of the group in which the creator is located;
The third group represents the rights of other people;

Permissions can also be represented with a number. Rwx are represented by numbers as 4+2+1=7.
The default permissions for newly created files are 644; The default permissions for newly created folders are 755.

Command chmod: Modify permissions, three groups using the U, G, o means, assign permissions to use "+", remove the permission to use "-".
chmod u+x F1//indicates that the creator of the file F1 increased execution rights
chmod o-r F1//Other person representing file F1 remove Read access


--linux Basic Command Review of Hadoop

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.