Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
46 Cards in this Set
- Front
- Back
- 3rd side (hint)
pwd |
where I am in the system
|
basic navigation
|
|
ls [path]
|
'perform a listing of the given part path or your current directory common options: –l –h –a'
|
basic navigation
|
|
cd [path]
|
change into the given path or into your home directory
|
basic navigation
|
|
'Path'
|
a description of where a for or directory is on a file system
|
basic navigation
|
|
'Absolute Path'
|
one beginning from the root of the file system (e.g. /etc/sysconfig)
|
basic navigation
|
|
'Relative Path'
|
one relative to where you currently are in the system (e.g. Documents/music)
|
basic navigation
|
|
~ (tilde)
|
used in paths as a reference to your home directory (e.g. ~/Documents)
|
basic navigation
|
|
. (dot)
|
used in paths as a reference to your current directory (e.g. ./bin)
|
basic navigation
|
|
.. (dot dot)
|
used in paths as a reference to your current directories parent directory (e.g. ../bin)
|
basic navigation
|
|
'TAB completion'
|
start typing and press TAB. The system will auto complete the path. Press TAB twice and it will show you your alternatives
|
basic navigation
|
|
mkdir
|
create a directory
|
file manipulation
|
|
rmdir
|
remove a directory (only if empty)
|
file manipulation
|
|
touch
|
create a blank file
|
file manipulation
|
|
cp
|
copy the source file to the destination
|
file manipulation
|
|
mv
|
"move the source file to the destination may also be used to rename files or directories"
|
file manipulation
|
|
rm
|
remove a file or directory common options: –r –f
|
file manipulation
|
|
*
|
zero or more characters (e.g. b*)
|
Wildcards
may be used anywhere in any path. |
|
?
|
single character (e.g. file.???)
|
wildcards
may be used anywhere in any path |
|
[ ]
|
range (e.g. b[aio]t)
|
wildcards
may be used anywhere in any path |
|
ls –l [path]
|
view the permissions of a file or all items in a directory
|
permissions
|
|
chmod
|
change permissions. permissions can be either shorthand (e.g. 754) or longhand (e.g. g+x)
|
permissions
|
|
>
|
redirect STDOUT to a file
|
piping and redirection
|
|
>>
|
append STOUT to the end of a file
|
piping and redirection
|
|
2>
|
redirect the STDERR to a file
|
piping and redirection
|
|
< |
pass the contents of a file to a program as STDIN |
piping and redirection |
|
|
|
feed the STDOUT of the program on the left as STDIN to the program on the right
|
piping and redirection
|
|
du –sh ./*
|
find the size of every directory in your current directory
|
useful commands
|
|
df –h
|
display how much disk space is used and also free
|
useful commands
|
|
File Permissions rwx stand for what? |
Read - Write - eXecute
|
Permissions
|
|
File Permissions are displayed in what order? |
owner/User - Group - Others |
Permissions
|
|
head |
Show the first n lines of a file
|
Filters
|
|
tail |
show the last n lines of a file
|
Filters
|
|
sort |
sort the lines in a given way
|
Filters
|
|
wc |
How many words characters and lines
|
Filters
|
|
grep |
search for a given pattern
|
filters
|
|
CTRL + C |
Cancel the currently running process
|
Process management
|
|
kill |
Cancel the given process
|
Process management
|
|
kill -9 |
Cancel a stubborn process
|
Process management
|
|
ps |
Obtain a listing of processes and their id's
|
Process management
|
|
ps aux |
Obtain a lisiting of ALL processes
|
Process management
|
|
CTRL + Z |
Pause the currently running process and send to background
|
Process management
|
|
jobs |
list processes in the background
|
Process management
|
|
fg |
Move background process to the foreground
|
Process management
|
|
basename -s .jpg -a *.jpg | xargs -n1 -i cp {}.jpg {}_original.jpg |
Make a copy of every jpg image file in the current directory and rename adding _original.
|
Useful Commands
|
|
find /home -mtime -1 |
Find all files in the given directory (and subdirectories) which have been modified in the last 24 hours.
|
Useful commands
|
|
shutdown -h now |
Shutdown the system. (Replace -h with -r for reboot.)
|
Useful Commands
|