Linux Command
Linux Command
com
2. mkdir Command
The mkdir command is used to create a new directory under any directory.
Syntax:
1. mkdir <directory name>
Output:
3. rmdir Command
The rmdir command is used to delete a directory.
Syntax:
1. rmdir <directory name>
Output:
4. ls Command
The ls command is used to display a list of content of a directory.
Syntax:
1. ls
Output:
5. cd Command
The cd command is used to change the current directory.
Syntax:
1. cd <directory name>
Output:
8. rm Command
The rm command is used to remove a file.
Syntax:
rm <file name>
Output:
9. cp Command
The cp command is used to copy a file or directory.
Syntax:
To copy in the same directory:
1. cp <existing file name> <new file name>
To copy in a different directory:
Output:
10. mv Command
The mv command is used to move a file or a directory form one location to another location.
Syntax:
1. mv <file name> <directory path>
Output:
18. id Command
The id command is used to display the user ID (UID) and group ID (GID).
Syntax:
1. id
Output:
28. tr Command
The tr command is used to translate the file content like from lower case to upper case.
Syntax:
1. command | tr <'old'> <'new'>
Output:
30. wc Command
The wc command is used to count the lines, words, and characters in a file.
Syntax:
1. wc <file name>
Output:
31. od Command
The od command is used to display the content of a file in different s, such as hexadecimal, octal,
and ASCII characters.
Syntax:
1. od -b <fileName> // Octal format
2. od -t x1 <fileName> // Hexa decimal format
3. od -c <fileName> // ASCII character format
Output:
42. df Command
The df command is used to display the disk space used in the file system. It displays the output as in
the number of used blocks, available blocks, and the mounted directory.
Syntax:
1. df
Output:
43. mount Command
The mount command is used to connect an external device file system to the system's file system.
Syntax:
1. mount -t type <device> <directory>
Output:
After pressing the ENTER key, it will clear the terminal screen.