Practical 1 Aim: Study of Basic Commands 1.Cd: The CD Command Is Used To Change The Current Directory
Practical 1 Aim: Study of Basic Commands 1.Cd: The CD Command Is Used To Change The Current Directory
7. clear
8. cat : It is used to create, display and concatenate file contents.
cat -b : Omits line numbers for blank space in the output
cat -E : Displays a $ (dollar sign) at the end of each line
cat -n : Line numbers for all the output lines
cat -s : Suppress repeated empty output lines
cat -T : Displays the tab characters as ^I in the output
9. pwd (Print working directory) : It prints the current working directory name with the
complete path starting from root (/).
10. who : It display the users that are currently logged into your Unix
computer system.
who -b : Display the time of the last system boot
who -H : Print a line of column headings
who -q : Displays all login names, and a count of all logged-on users
who -a : Display all details of current logged in user
11. whoami : This command prints the username associated with the current
effective user ID.
whoami –help : Display a help message, and exit
whoami --version : Display version information, and exit
12. uname (unix name) : Print information about the current system.
uname -s Print the kernel name
uname -n Print the network node hostname
uname -v Print the kernel version
uname -m Print the machine hardware name
uname -o Print the operating system
15. rmdir : This command removes empty directories from your filesystem.
rmdir -p : Remove directory and its ancestors… e.g.,‘rmdir -p a/b/c’ is
similar to ‘rmdir a/b/c a/b a’
20. paste : The paste command displays the corresponding lines of multiple
files side-by-side.
paste -d : Reuse characters from LIST instead of tabs
paste -s: Paste one file at a time instead of in parallel
21. history : history command is used to view the previously executed
command.