|
1 | 1 | #**DIRECTORY OPERATIONS** |
| 2 | +* ## ls: |
| 3 | + To show the list of current files and directory |
| 4 | + ### Advance **ls options**: |
| 5 | + -a Show all (including hidden) |
| 6 | + -R Recursive list |
| 7 | + -r Reverse order |
| 8 | + -t Sort by last modified |
| 9 | + -S Sort by file size |
| 10 | + -l Long listing format |
| 11 | + -1 One file per line |
| 12 | + -m Comma-separated output |
| 13 | + -Q Quoted output |
| 14 | + |
| 15 | + > note: dir is also working in linux to show the files and directory terminal but it doesn't show the permission on files or folders |
| 16 | + |
| 17 | + |
| 18 | +* ## pwd(present Working Directory): |
| 19 | + To show current directory |
| 20 | + |
| 21 | + |
| 22 | +* ## mkdir directory_name: |
| 23 | + To make directory directory_name |
| 24 | + |
| 25 | + |
| 26 | +* ## cd directory_name : |
| 27 | + To change directory to directory_name |
2 | 28 |
|
3 | | -* ## ls : |
4 | | -To show the list of current files and directory |
5 | 29 |
|
6 | | - ### Advance ls options : |
7 | | - 1. **-a :** Show all (including hidden) |
8 | | - 2. **-R :** Recursive list |
9 | | - 3. **-r :** Reverse order |
10 | | - 4. **-t :** Sort by last modified |
11 | | - 5. **-S :** Sort by file size |
12 | | - 6. **-l :** Long listing format |
13 | | - 7. **-1 :** One file per line |
14 | | - 8. **-m :** Comma-separated output |
15 | | - 9. **-Q :** Quoted output |
| 30 | +* ## cd .. : |
| 31 | + To go up directory(parent directory) |
16 | 32 |
|
17 | | -> **note** : dir is also working in linux terminal to show the files and directory but it doesn't show the permission on files or folders |
| 33 | + |
18 | 34 |
|
0 commit comments