Displays when and where the work path and toggle
1. Pwd: command to display the current working path
PWD Displays the current working path
Pwd–p Show True Path
2. CD: switch Work path
cd– switch the last working path
CD ~ Switch Home directory
Cd.. Switch to Parent directory
CD ~username switch to another user's home directory
3. ls: See what files are in the current directory
Format: LS [options] [file]
Parameters |
Role |
-A |
View All Files |
-D |
Only look at the directory itself |
-L |
Show detailed information for a file |
-H |
easy-to-read file size (k,m,g ) |
[Email protected] ~]# ls-ld/etc
Drwxr-xr-x. 8192 root root 08:20/etc
[Email protected] ~]# ls-dhl/etc
Drwxr-xr-x. Root root 8.0K 08:20/etc
[Email protected] ~]# Ls-al
Total 60
Dr-xr-x---. Root root 4096 15 08:07.
Drwxr-xr-x. Root root 4096 15 2017.
-RW-------. 1 root root 1102 6 21:17 anaconda-ks.cfg
linux[Basic]-07-Common command [01]