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
Files with extensions .exe and .com in Windows
Programs
Command typed in front of an executable that makes Linux run it
./
One of two special characters (* and ?) that you can use in place of all or part of a filename, often so that a command-line command will act on more than one file at a time. Use * to replace the part of the file that you don’t care about
Wildcard
Command used to delete files.
del (Win)/rm (macOS and Linux)
Will not delete directories
del
Will delete directories if the “-r” switch is added
rm
Command to duplicate a file to another directory
copy (Win)/cp (macOS and Linux)
Command to change the location of a file
move (Win)/mv (macOS and Linux)
Command that functions similarly to copy but has extra switches that gives it the power to work with multiple directories
xcopy command
Command with switch that moves all subdirectories except for empty ones
xcopy /s
Command with switch that moves all empty subdirectories
xcopy /e
Command that is an add-on tool for Windows Server to enable techs to manage files and folders more quickly and efficiently than with xcopy or copy. Copies encrypted files and will continue at the spot it stopped at if interrupted
robocopy/Robust File Copy command