Command Line Commands Flashcards
1
Q
pwd
A
print working directory
2
Q
hostname
A
my computer’s network name
3
Q
mkdir
A
make directory
4
Q
cd
A
change directory
5
Q
ls
A
list directory
6
Q
rmdir
A
remove directory
7
Q
pushd
A
push directory; saves your current location and pushes you temporarily to a different directory
8
Q
popd
A
pop directory; takes you back to the last directory you pushed
9
Q
cp
A
copy a file or directory
10
Q
robocopy
A
robust copy
11
Q
mv
A
move a file or directory; also used to rename a file or directory
mv file1.txt directory/ moves the file
mv file1 file2 changes the file name
mv directroy1 directroy2 changes the directory name
12
Q
more
A
page through a file; type q to exit the view mode
13
Q
type
A
print the whole file
14
Q
forfiles
A
run a command on lots of files
15
Q
dir -r
A
find files