1. ls:
This command is used to list the contents of a directory. By default, it displays the contents of the current directory, but you can specify a different directory as an argument.
2. cd:
This command is used to change the current working directory. You can specify the directory you want to change to as an argument.
3. pwd:
This command prints the current working directory.
4. mkdir:
This command creates a new directory. You specify the name of the new directory as an argument.
5. rmdir:
This command removes an empty directory. If the directory contains files or other directories, you will need to use the rm command instead.
6. cp:
This command is used to copy files or directories. You specify the source file or directory and the destination as arguments.
7. rm:
This command is used to remove files or directories. Be careful when using this command, as it permanently deletes files and directories.
8. mv:
This command is used to move or rename files or directories. You specify the source file or directory and the destination as arguments.
9. cat:
This command displays the contents of one or more files. You can specify multiple files as arguments.
10. echo:
This command displays a line of text. You can specify the text you want to display as an argument.
11. grep:
This command searches for a pattern in a file or output. You specify the pattern and the file or output to search as arguments.
12. chmod:
This command is used to change the permissions on a file or directory. You specify the permissions you want to set and the file or directory as arguments.
13. chown:
This command is used to change the owner or group of a file or directory. You specify the new owner or group and the file or directory as arguments.
14. sudo:
This command is used to execute a command with superuser (root) privileges. This is necessary for certain operations that require elevated privileges.
15. tar:
This command is used to create or extract archive files. Archive files are used to bundle multiple files into a single file for easier distribution or backup.
16.clear:
Clear the terminal
17.reboot :
Reboots the system
18.shutdown:
Showdown the system for specified minutes
19.shutdown now:
Showdown the system immediately
20.tree:
Show directory in tree structure
21.alias:
Instruct the shell to replace one string with another string while executing the commands
22.ln:
Create a hard link or symlink to an existing file or directory.
23.touch:
Create file in the system
24.nano:
Open command line text editor
25.bc:
Using arithmetic operation in terminal
No comments:
Post a Comment