Command Line Flashcards
1
Q
> &»_space;
A
makes/overwrites file for output vs. appends output if file exists
2
Q
man
A
read a manual page
3
Q
grep
A
find things inside files
4
Q
|
A
output of command on LEFT as input to command on RIGHT
5
Q
export
A
export/set a new environment variable
6
Q
echo
A
print some arguments
7
Q
env
A
look at your environment
8
Q
apropos
A
find what man page is appropriate (search though man pages)
9
Q
find
A
find files (find STARTDIR -name WILDCARD -print)
10
Q
cat
A
print whole file to standard output
11
Q
pwd
A
print working directory
12
Q
hostname
A
my computer’s working name
13
Q
mkdir
A
make directory
14
Q
cd
A
change directory
15
Q
ls
A
list directory (contents)