Working With The Command Line Interface Flashcards
The tool that interprets input
Shell/Command Line Interpreter
Default Windows shell
Command
Default shell for macOS and most Linux distros
Bash
Command line in macOS and Ubuntu Linux that operate almost identically because both are based on UNIX
Terminal
Older command that gives the user root access
su
Command that gives the user root access
sudo
A unique method of binary organization
File Format
Linux command that displays the user’s current path
pwd
An extra letter or number that modifies a command
Switch/Option
The proper way to write a command
Syntax
Command that shows you the contents of the working directory
dir (Win)/ls (macOS/Linux)
Command that shows the contents of the working directory one screen at a time in which hitting spacebar shows the next screen
dir /p (pause)
macOS and Linux version of dir/p
ls | more
Sends the output of a command through another command; works in all three OSes
(pipe)
Lists the creation date, creation time, file size in bytes, filename, and extension
dir entries for files
Lists the creation date, creation time, to tell you it is a folder, and the folder name
dir entries for folders
Command that changes the directory focus and works in every OS but uses \ for Win and / for macOS and Linux
cd command
Switch that moves the focus up one level when navigating from the command line
.. option/switch
Moved you to another drive in Windows
(Letter and a colon)
Since macOS stores everything in folders, look in the /Volumes folder
Moving between drives in macOS
Since Linux stores everything in folders, look in the /mnt folder for drives and /media/ folder for removable media
Moving between drives in Linux
Command that makes a directory. Once Windows executed the command, it won’t show what it did.
md (Win)/mkdir(all OSes) command
Command that removed a directory. The command will not delete a directory if the directory has any files or subdirectories
rd (Win)/rmdir (all OSes)
Removes a directory and its contents
rd /s