Chapter 15: Command Line Interface Flashcards
CLI
Command Line Interface
Shell
Command line interpreter program
\
backslash (Windows)
/
forward slash (UNIX)
sudo; su
Super user privileges in UNIX, write before your commands
Working Directory
Current directory (where terminal is focused)
Absolute Path
full file location
Relative Path
path based off a starting point
pwd
UNIX - full path
~
UNIX - home directory
switch
“options” for different commands, typically following the command
[command] /?
WINDOWS - get help on what command does (manual)
man [command]
UNIX - get help on what command does (manual)
builtin vs external
builtin - command that is part of the shell
external - command that is not innate to shell
type [command]
UNIX - gives the type of command written
type - a [command]
UNIX - gives all types of that command, not just default type
Get-[command]
WINDOWS - gives info on command
dir
dir /p
WINDOWS - shows directory contents
shows directory contents but pauses after one page
ls
ls | more
ls -l
UNIX - shows directory contents
shows contents but pasuses after one page
shows long form details on contents
cd \path
cd ..
changes directory focus
moves focus up a directory (to parent)
e: (command prompt)
WINDOWS - switches to e: drive
Switching drives in UNIX
must look manually
MacOS - check the /Volumes
Ubuntu - check /mnt or /media/<user></user>
md [name]
WINDOWS - create a directory given name
mkdir [name]
UNIX and WINDOWS - create a directory given name
rd [name]
WINDOWS - remove directory