Skip to content

Commit 8b8990e

Browse files
committed
Update BashCommandsForNewbie.md
1 parent d57e0cd commit 8b8990e

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed
Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
#**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
228

3-
* ## ls :
4-
To show the list of current files and directory
529

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)
1632

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+
1834

0 commit comments

Comments
 (0)