/home/
directory. This shell script runs everytime you open an instance of Bash shell.Ctrl + Alt + T
to open up an instance of the terminal.sudo
.sudo chmod +x hello.sh
Command | Function |
---|---|
ls |
List the files and folders in the current directory |
ls -l |
-l flag is used with ls to list files and folders in the current directory with their permissions. |
ls -la |
-la flag is used to list all the files and folders including hidden ones with their permissions. |
Usage | Result |
---|---|
mkdir folder1 folder2 |
This command will create two folders, folder1 and folder2 in current directory. |
Usage | Result |
---|---|
cd ~ |
This will take to to /home/ directory. In UNIX, tilde ~ is used to represent home directory. |
cd ~/colcon_ws |
This will take you inside a folder named colcon_ws in home directory |