July 2019
Intermediate to advanced
458 pages
12h 12m
English
While using a shell, one of the directories will be the working directory, when paths are relative (for example, file.sh or dir/subdir/file.txt). The working directory is used as a prefix to obtain an absolute one. This is usually shown in the prompt of the command line, but it can be printed with the pwd command (print working directory).
The cd (change directory) command can be used to change the current working directory. To create a new directory, there's the mkdir (make directory) command.
To show the list of files for a directory, there's the ls command, which accepts a series of options, including more information (-l), showing hidden files and directories (-a), and sorting by time (-t) and size (-S).
Read now
Unlock full access