This is by no means a complete list of Linux information.
Some good places to find more complete Linux infomation: Linux Online a great source of all things Linux |
If those links don't do it for you, try some hard copy (sometimes it's easier to flip through a book).
tn5250 - 5250 Emulator
asdbget - retrieve databases from the AS/400
This is intended to provide some quick answers to common Linux questions. It will be reorganized as is necessary to fit the pertinent information.
Action | Command Usage | Example | Notes/comments |
---|---|---|---|
Copy | cp <fromfile[s]> <tofile [or dir]> |
cp /tmp/test.txt /root |
Options: -f (force overwrite) -i (interactive - prompt) |
Move | mv <fromfle[s]> <tofile [or dir]> |
mv /tmp/test.txt /root |
Options -f -i (also used to rename files) |
Delete | rm <file[s]> |
rm -i ~/index.html |
be very careful!!! |
View! | less <file[s]> |
less *.txt |
Check the man page for more syntax - try pressing g and G for top/bottom (b goes back a page) q to quit, :n for next file |
Archives | tar xvzf package.tar.gz |
tar is complex, but this is the most common decompression command |
rpm -qi <package>
rpm -qa
rpm -i <package>
rpm -U <package>
rpm -e <package>
Here's a quick tip that will save you a lot of waiting later.
If you are running a job that will take a long time, and you want to move it to the background so you can do something else:Press CTRL-Z to get a prompt then type bg
Worried about destroying files with shell command? (I do it all the time!)
$ set +o noclobber
Now you'll be warned!
History
If your history is filling up with useless commands, add the following to your ~/.bash_profile (add any commands you want, no spaces)
HISTIGNORE=ls:fg:bg:df
export HISTIGNORE
More to come later! (mount, directories, what else?)
This page is part of PORTERFIELD.net