basic commands Flashcards
1
Q
echo
A
print screen(-n = do not print)
2
Q
pwd
A
show location
3
Q
what is the anatomy of a command
A
[command][arguments…]
4
Q
tar
A
an archival command that can archive, compress, and extract files, but to make it work, you need to tell it which files to take action on, and what exactly to do with those files
5
Q
tar -c -z -f
A
create zip file(flags)
6
Q
[man][command]
A
show the manual of a certain command
7
Q
cd
A
change current directory
8
Q
ls
A
see what’s in a directory
9
Q
cd ~
A
go to home directory
10
Q
mkdir
A
make a directory in current location
11
Q
[touch][filename.example]
A
create a new file
12
Q
mv
A
move or rename a file. example: [mv][filename][newname] [mv][source][destination] [mv][filename][location] [mv][subfolder/file][newname](will rename file and move it to current folder)
13
Q
rm
A
remove a file
14
Q
rm -r
A
remove a folder and all its contents
15
Q
cat
A
print out all the contents of a file