Shell Commands Flashcards
(32 cards)
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
8
Q
popd
A
pop directory
9
Q
cp
A
copy a file or directory
10
Q
mv
A
move a file or directory
11
Q
less
Mac/Linux
A
page through a file
12
Q
cat
Mac/Linux
A
print the whole file
13
Q
robocopy
A
robust copy
14
Q
more
A
page through file
15
Q
type
A
print whole file
16
Q
xargs
Mac/Linux
A
execute arguments
17
Q
forfiles
A
run command on lots of files
18
Q
find
Mac/Linux
A
find files
19
Q
dir -r
A
find files
20
Q
grep
Mac/Linux
A
find things inside files
21
Q
select-string
A
find things inside files
22
Q
man
Mac/Linux
A
read a manual page
23
Q
help
A
read manual page
24
Q
apropos
Mac/Linux
A
find what man page is appropriate
25
helpctr
find what man page is appropriate
26
env
Mac/Linux
look at your environment
27
echo
print some arguments
28
set
export/set a new environment variable
29
export
Mac/Linux
export/set a new environment variable
30
exit
exit the shell
31
sudo
Mac/Linux
become super user root
32
runas
become super user root