Skip to content

Commit 0ba8f35

Browse files
authored
1st Commit
Added first 10 commands
1 parent 504d166 commit 0ba8f35

File tree

1 file changed

+70
-1
lines changed

1 file changed

+70
-1
lines changed

README.md

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,70 @@
1-
# LearnBase-Bash
1+
# LearnBase-Bash :book:
2+
### Heared about Linux? Want to learn bash scripting? or Searching for a good Handbook for terminal Commands?
3+
4+
**HERE's ALL.**<br>
5+
In a programmers' life, Linux is the thing that one should know how to use it efficiently.
6+
This is a self learn tutorial for those who new to Linux terminal and want to learn how to use it effectively.
7+
8+
> This tutorial is covering the most used(80-90%) commands.
9+
10+
### 📙Let's Start❗
11+
12+
__1. ```man``` command__
13+
- to get the manual of commands that what specific command actually do and how to use it.
14+
- Syntax: ```man <command_name>```
15+
- use ```q``` key to exit from man page
16+
17+
__2. ```ls``` command__
18+
- list command, used to list the files.
19+
- Syntax: ```ls``` accepts a lot of options
20+
- ```ls```
21+
- ```ls <folder_path>``` - to list files of a specific folder
22+
- ```ls -al```
23+
24+
__3. ```mkdir``` command__
25+
- to create folders
26+
- Syntax:
27+
- ```mkdir <folder_name>``` - single folder
28+
- ```mkdir <folder1> <folder2>``` - multiple folders
29+
- ```mkdir -p <parentfolder / childfolder>``` - nested folders
30+
-
31+
32+
__4. ```cd``` command__
33+
- cd means change directory. You can jump between folders using this command.
34+
-Syntax:
35+
- ```cd <folder_name/path>```
36+
- ```cd ..``` - to back to parent folder
37+
- ```cd ../folder_name``` -
38+
- ```cd /<foldername>``` - use absolute paths, which start from the root folder ```/```
39+
40+
__5. ```pwd``` command__
41+
- prints current folder path.
42+
43+
__6. ```rmdir``` command__
44+
- delete __empty__ folders using this command
45+
- Syntax:
46+
- ```rmdir <folder_name>
47+
- ```rm -rf <folder>``` : _To delete folders with files in them_
48+
> ❗ NOTE: this command does not ask for the confirmation from the user and immediately remove that you ask it to remove.
49+
50+
__7. ```touch``` command__
51+
- to create an empty file
52+
- Syntax: ```touch <file_name>
53+
- If the file already exists, it opens th file in write mode.
54+
55+
__8. ```mv``` command__
56+
- to move the file and also to rename the file
57+
- ```mv <from_folder/file> <to_folder/file>```
58+
- ```mv <file1> <file2> <tofolder>``` - to move more than one file, make a list of file and move to folder.
59+
60+
__9. ```cp``` command__
61+
- to copy a file
62+
63+
__10. ```open``` command__
64+
- to open a file using this command
65+
- Syntax: ```open <filename>```
66+
67+
__11. ```find``` command
68+
- used to find files or folders matching a particular search pattern. It searches recursively.
69+
- Example: to find all the files in current directory with extension ```.png``` and also print the relative path.
70+
- ```find . -name '*.png'```

0 commit comments

Comments
 (0)