Professional Documents
Culture Documents
The mkdir command is used to create a new directory under any directory.
Syntax:
chdir :-
The cd command, also known as chdir (change directory), is a
command-line shell command used to change the current working
directory in various operating systems. It can be used in shell
scripts and batch files.
• Syntax. #include <unistd.h> int chdir(const char *path);
cat Command
The cat command is a multi-purpose utility in the Linux system. It can be used to create
a file, display content of the file, copy the content of one file to another file, and more.
Syntax:
4. ls Command
Syntax:
1. ls
chown command is used to change the file Owner or group. Whenever you
want to change ownership you can use chown command.
Syntax:
chown [OPTION]… [OWNER][:[GROUP]] FILE…
chown [OPTION]… –reference=RFILE FILE…
Example: To change owner of the file:
chown owner_name file_name
Linux provides us a utility called ps for viewing information related with the
processes on a system which stands as abbreviation for “Process
Status”. ps command is used to list the currently running processes and
their PIDs along with some other information depends on different options.
It reads the process information from the virtual files in /proc file-system.
/proc contains virtual files, this is the reason it’s referred as a virtual file
system.
ps provides numerous options for manipulating the output according to our
need.
Syntax –
ps [options]
Options for ps Command :