The first thing you need to know is the command prompt
[[Email protected] ~] #
Current logged on user (root)
Host name (localhost)
Current directory (home directory)
Super User prompt (#)
Normal user prompt ($)
1.1 Format of the command
command [options] [parameters]
Note: Individual commands are not in this format
Multiple options can be written together
Shorthand option-a rather with--all
1.2 A few simple common commands
command 1:LS [options] [files or directories]
Command function: Querying contents of a directory
Options:
-a displays all files, including hidden files (is a shorthand for option--all)
-L Show more information
-D View Directory properties
-H humanized Display file size
-I display Inode (index node)
Ls-a Show All files,. Files that begin with are hidden files
Ls-l Permission Reference count owner belongs to group file size last modified time
Permissions: 10-bit
First bit: File type (-file; d directory; l soft link) also available (block device files, character device files, socket files, and pipe files)
rw-r--R-x (R-Read, W-write, X-execute)
U owner G-owned group O other person
Ls-d
Linux command Learning (a)--ls command