Basic Commands - Linux/Mac OSX Flashcards
1
Q
pwd
A
print working directory
2
Q
hostname
A
my computers 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
cp
A
copy a file or directory
9
Q
mv
A
move a file or directory
10
Q
less
A
page through a file
11
Q
cat
A
print the whole file
12
Q
xargs
A
execute arguments
13
Q
find
A
find files
14
Q
grep
A
find things inside files
15
Q
man
A
read a manual page
16
Q
apropos
A
find what man page is appropriate
17
Q
env
A
look at your environment
18
Q
echo
A
print some arguments
19
Q
export
A
export/set a new environment variable
20
Q
exit
A
exit the shell
21
Q
sudo
A
DANGER! become super user root DANGER!
22
Q
chmod
A
change permission modifiers
23
Q
chown
A
change ownership