Ls
- L : Long Format
File type: the
- : Normal file (f)
D: Catalog Files
B: block device files (blocks)
C: character device files (character)
L: Symbolic Link file (symbolic Linkfile)
P: command Pipe file (pipe)
S: socket file (socket)
File permissions: 9-bit, every 3-bit group, each group: rwx (Read, write, execute), r--
Number of hard links to files
owner of the file
Genus Group of files
File size (size), in bytes
timestamp (timestamp): Last Modified time
access: access
Modified: Modify, the file content has changed
change: change,metadata, meta data
- H : Do unit conversions
-A : Show hidden files that begin with.
. represents the current directory
.. represents the parent directory
-A
- D: Show directory itself properties
-i:index node, inode
- R: Reverse Display
- R: recursive (recursive) display
Cd:change directory,
1.Name: CD
2. Objects used: All Users
3. Command format: CD [DirName] (CD and directory separated by spaces)
4. Function: Togglecurrent directoryTo DirName.
5. Usage Examples:
[[Email protected]/]$ CD/
[[email protected]/]$ ls
Bin Dev Home lost+found mnt proc sbin SRV tmp var
Boot etc Lib media opt root selinux sys usr
[Email protected]/]$ Cd/boot
[[email protected] boot]$ ls
config-2.6.27.5-117.fc10.i686 Lost+found
EFI system.map-2.6.27.5-117.fc10.i686
Grub vmlinuz-2.6.27.5-117.fc10.i686
Initrd-2.6.27.5-117.fc10.i686.img
[Email protected] boot]$
6.linux CD command Use tips:
The CD enters the user's home directory;
CD ~ Enter the user's home directory;
CD-Returns the directory where the directory was before it was entered;
Return to the parent directory (ifcurrent directoryis " /" and then "/"; "..." After execution The meaning of the parent directory);
Cd.. /.. Return to the top level two directory;
CD!$ Use the parameters of the previous command as CD parameters.
CD command: Toggle current directory to other directories, such as entering/etc directory, then execute CD/ETC
CD/: The Slash "/" in the Linux system represents the root directory. CD/, enter the root directory.
The CD ~ command is to enter the user's home directory on the system, such as the XZ user, to enter the/ROOT/XZ directory.
Home directories, home directories, home directory
CD ~username: Enter the home directory for the specified user
CD-: switch back and forth between the current directory and the previous directory
This article from "Peng Brother's Blog" blog, declined reproduced!
The LS command and the CD command of the Linux command