Basic Shell Commands Flashcards
(Windows) dir
List contents of current directory
(UNIX) ls
List contents of current directory
(Windows) cd
Display current directory
(UNIX) pwd
Display current directory
(Windows) / (UNIX) cd path
change current directory
(Windows)
copy
path1
path2
copy file path1 to name/location path2
(UNIX)
cp
path1
path2
copy file path1 to name/location path2
(Windows)
move path path
move file path1 to name/location path2
(UNIX)
mv path path
move file path1 to name/location path2
(Windows)
del path
delete file path
(UNIX)
rm path
delete file path
(Windows) rm dir path
delete folder/directory path
(UNIX) rm dir path
delete folder/directory path
(Windows) mkdir path
create folder/directory path
(UNIX) mkdir path
create folder/directory path
(Windows) type path
print file path to screen
(UNIX) cat path
print file path to screen
(Windows) Notepad path
Open file path im a text editor
(UNIX) gedit path nano path
Open file path im a text editor
(Windows) whoami
Tells the username for the account that is executing the command
(UNIX) whoami
Tells the username for the account that is executing the command