pwd.
The "root" of the hierarchical tree is called /; your home
directory will be something like /homespace/home/joe.
"Up" means moving towards the root of the tree,
from sub-directories to directories (e.g. from
/homespace/home/joe to /homespace/home),
"down" means moving from directories to sub-directories
(e.g. from
/homespace/home/joe to /homespace/home/joe/stats).
To list the files in the current directory:
lsTo get a long listing, with owner, date, permissions, and last modification date:
ls -lTo change to other directories:
cd foo (change to a directory within the current directory)
cd /home/joe/foo (change to a directory specified by "absolute path":
/ means "the top of the filesystem hierarchy")
cd .. (go up one directory)
cd ../foo (go up one directory and change to directory foo)
cd ~fred (change to fred's home directory)
mv foo1 foo2 (move/rename a file in the current directory)
cp foo1 foo2 (copy foo1 to foo2 in the current directory)
rm foo1 (erase file foo1)
pico, which is fairly simple
and has the advantage of listing all of its commands at
the bottom of the screen. vi and emacs
are more powerful; vim is an enhanced version of vi.
grep string foo (print all lines in file "foo" containing
string "string")
find
chmod
gcc
make
*
TAB