Professional Documents
Culture Documents
PRACTICAL: II
AIM:
1. mkdir
The mkdir command is used to create new directories. A directory, referred to as a folder
in some operating systems, appears to the user as a container for other directories and files.
2. cd
The cd command, also known as chdir (change directory), is a command-line OS shell
command used to change the current working directory in operating systems such as Unix,
DOS, OS/2, AmigaOS (where if a bare path is given, cd is implied), Windows, and Linux.
It is also available for use in shell scripts and batch files.
3. cat
cat is one of the most frequently used commands on Unix-like operating systems. It has
three related functions with regard to text files: displaying them, combining copies of them
and creating new ones.
4. pwd
In Unix-like and some other operating systems, the pwd command (print working
directory) is used to output the path of the current working directory. The command is a
shell built in in certain Unix shells such as sh, and bash
5. date
The date command displays the current date and time. It can also be used to display or
calculate a date in a format you specify. The super-user (root) can use it to set the system
clock.
6. cal
If you want to quickly view a calendar on terminal in Linux, then cal is the command line
tool that you should be using. By default the command displays the current month in
output. ... It differs from cal in the sense that it offers an alternative layout, more options,
and the date of Easter.