have been learning Linux, but a little day fishing two days means, now hope to write blog form, accumulate more knowledge, but also hope to help the same in the Linux pit of the small friends ~
PS: My notes focus on popular, a lot of commands 100 degrees, but some command parameters and many are not used, and some are in the interpretation of the parameters of some obscure, so in my writing these commands, there may be individual parameters are not written
Please note that there is the knowledge point from the experimental building----Linux Command Example practice this experiment, self-feeling quite suitable for beginners
1 ls command
LS is used to print out a list of current directories. If LS specifies a different directory, then the list of files and folders in the specified directory is displayed.
The LS command not only allows you to view the files contained in a Linux folder, but also to view file permissions (including directories, folders, file permissions) to view directory information, and so on.
(1) command format
ls [options] [directory name]
(2) Common parameters
Parameters |
Description |
-A |
–all lists all files under the directory, including the. The implied file at the beginning |
-L |
In addition to file names, the file's permissions, owner, file size, and other information are listed in detail |
-D |
–directory Displays the directory as a file, rather than displaying the file below it |
-H |
–human-readable list file sizes in an easy-to-understand format (e.g. 1K 234M 2G) |
-T |
Sort by file modification time |
2 CD command
Other command statements are created using the CD command. The CD command is the abbreviation for Change directory, which toggles the current directory to the specified directory.
(1) command format
CD [Directory name]
Current User home Directory CD ~
Enter the parent directory CD from the current directory:
Enter the system root directory CD/
Go to the last directory CD-
3 pwd Command
In Linux, use the PWD command to view the full path to the current working directory. Simply put, you will have a current working directory every time you operate in a terminal. When unsure of the current location, PWD is used to determine the exact location of the current directory within the file system.
(1) command format
PWD [Options]
(2) Common parameters
Parameters |
Description |
-P |
Displays the actual physical path, not the link path |
-L |
When the directory is a connection path, the connection path is displayed |
Linux command--1