Saturday, November 9, 2019

Directory Creation, Access and Structure

Ø  mkdir directoryName -: to create a directory
Ø  cd /directoryName -: access to a directory from root
Ø  cd directoryName -: access to a directory from a directory
Ø  cd .. -: goes to the parent directory
Ø  cd // -: goes to the root
Ø  pwd -: present working directory
Ø  ls -: lists the files and directories according to the ascending order
Ø  ls -r -: lists the files and directories according to the descending order
Ø  ls -l -: lists the files and directories with details
Ø  tree -: tree structure of a directory

No comments:

Post a Comment

fork() - Theory

fork() is used create a new child process. Ø   No arguments Ø   Process ID of the child process Ø   After the execution of fork() command ...