Linux has multiple commands some of which are stated in the below-given table:
|Display the current working directory
|Gives the current date
|Give a guide for a particular command
|Shows the user who is logged in to the system
|Display the current username
|Display all the commands executed in the terminal
|Used to clear the terminal
|Used to exit the current terminal
To create a shell script, follow the below-listed instructions:
- Specify the name of any editor, such as nano, gedit, or vim editor with script name like “vi sh”.
- Add “#!/bin/bash” at the start of the editor which will instruct the operating system to utilize bash as a command interpreter and save them in the newly created script.
- Add commands in the script and save it.
- Execute the script through the following syntax:
That’s it! We have illustrated the Linux basic commands with descriptions and their uses. Check out the provided video to perform numerous operations by utilizing the multiple commands for better understanding.