Basic
Linux Commands you should know
Go to Basic Linux commands for more details and easy printing.
man This command brings up the online Unix manual.
Use it on each of the commands below.
pwd Shows what directory (folder) you are in. Your
home directory is /home/particle
cd Changes directories.
cd .. Moves up one directory (yes, include the two little
dots)
cd ~ Takes you back to your home directory (/home/particle)
mkdir dirName Creates a directory with name dirName.
rmdir dirName Removes a directory dirName.
ls Lists files. If you add -al after ls it will give more
details for each file.
ls -al |more Shows one screen of file names at a time.
less data1 Dumps the contents of the data1 file to your screen
with a pause at each line so you don't miss any contents as
they scroll. You may move through the file using page up,
page down, home and end keys. When done with less you use
the q key to get back to the main terminal.
whereis data1 Shows you the location of the data1 file.
rm data1 Deletes the file data1 in the current directory.
rm -i muon* Removes all of your muon data files
(careful!! rm * will remove ALL your files).
The -i makes the computer prompt before removing
each file. If you really want to work without a net, omit
the -i
cp data1 newdata/ will copy the file data1 to the directory
newdata
mv data1 newdata/ moves the file data1 to the folder newdata
and deletes the old one.
df Shows the disk usage. This will tell you how much disk
space you have left on your hard drive
|