BASICS OF LINUX SHELL

BASIC UNIX/LINUX SHELL PATHWAYS & COMMANDS
2

LINUX SHELL, BASH

EASY

last hacked on Jul 22, 2017

Below we cover basic Unix/Linux shell pathways and commands. To follow this project, open your computer's terminal. # Pathways #### Working Directory `.` is code for **working** directory. #### Root Directory `/` is code for **root** directory, also known as the very gut directory within a computer file system (in the Unix and Unix-like operating systems). More specifically, the root directory is the first or top-most directory in a hierarchy. #### Home Directory `~` is code for **home** directory, an important directory contained within the root directory. #### Parent of Working Directory `..` is code for the parent of the working directory. # Commands #### Print Working Directory `pwd` is a command that prints the pathway to your **working** directory. $ pwd #### List Contents `ls` is a command that lists the contents of a specified directory; if such directory is unspecified, it `ls` defaults to the present working directory. $ ls <PATHNAME> #### Change Directory `cd` is a command that changes the directory; if such directory is unspecified, `cd` defaults to home. $ cd <PATHNAME> #### Create a File `touch` is a command that creates a file. It requires a name parameter for such file. $ touch <FILENAME> #### Remove a File `rm` is a command that removes a file. It requires a name parameter for such file. $ rm <FILENAME> #### Make a Directory `mkdir` is a command that creates a directory. It requires a name parameter for such directory. $ mkdir <DIRECTORYNAME> #### Remove a Directory `rmdir` is a command that removes a directory. It requires a name parameter for such directory. $ rmdir <DIRECTORYNAME>

COMMENTS







keep exploring!

back to all projects