Shared Flashcard Set

Details

The Command Line Crash Course
http://cli.learncodethehardway.org/
29
Computer Science
Professional
09/19/2013

Additional Computer Science Flashcards

 


 

Cards

Term
pwd
Definition
print working directory
Term
hostname
Definition
my computer's network name
Term
mkdir
Definition
make directory
Term
cd
Definition
change directory
Term
ls
Definition
list directory
Term
rmdir
Definition
remove directory
Term
pushd
Definition
push directory
Term
popd
Definition
pop directory
Term
cp
Definition
copy a file or directory
Term
mv
Definition
move a file or directory
Term
less
Definition
page through a file
Term
cat
Definition
print the whole file
Term
xargs
Definition
execute arguments
Term
find
Definition
find files
Term
grep
Definition
find things inside files
Term
man
Definition
read a manual page
Term
apropos
Definition
find what man page is appropriate
Term
env
Definition
look at your environment
Term
echo
Definition
print some arguments
Term
export
Definition
export/set a new environment variable
Term
exit
Definition
exit the shell
Term
sudo
Definition
DANGER! become super user root DANGER!
Term
chmod
Definition
change permission modifiers
Term
chown
Definition
change ownership
Term
$|$
Definition
The | takes the output from the command on the left, and "pipes" it to the command on the right.

$ cat ex12.txt ex13.txt | less
Term
$<$
Definition
The < will take and send the input from the file on the right to the program on the left.

$ cat < ex13.txt
$ less < ex12.txt
$ less < ex12.txt | cat | less
less < ex12.txt
Term
$>$
Definition
The > takes the output of the command on the left, then writes it to the file on the right.

$ cat ex13.txt > ex15.txt
Term
$>>$
Definition
The >> takes the output of the command on the left, then appends it

to the file on the right.
Term
*
Definition
matches anything in a wildcard

$ ls *.txt
$ ls ex*.*
Supporting users have an ad free experience!