Part III. first steps on the command line

Table of Contents

7. man pages
man $command
man $configfile
man $daemon
man -k (apropos)
whatis
whereis
man sections
man $section $file
man man
mandb
8. working with directories
pwd
cd
cd ~
cd ..
cd -
absolute and relative paths
path completion
ls
ls -a
ls -l
ls -lh
mkdir
mkdir -p
rmdir
rmdir -p
practice: working with directories
solution: working with directories
9. working with files
all files are case sensitive
everything is a file
file
touch
create an empty file
touch -t
rm
remove forever
rm -i
rm -rf
cp
copy one file
copy to another directory
cp -r
copy multiple files to directory
cp -i
mv
rename files with mv
rename directories with mv
mv -i
rename
about rename
rename on Debian/Ubuntu
rename on CentOS/RHEL/Fedora
practice: working with files
solution: working with files
10. working with file contents
head
tail
cat
concatenate
create files
custom end marker
copy files
tac
more and less
strings
practice: file contents
solution: file contents
11. the Linux file tree
filesystem hierarchy standard
man hier
the root directory /
binary directories
/bin
other /bin directories
/sbin
/lib
/opt
configuration directories
/boot
/etc
data directories
/home
/root
/srv
/media
/mnt
/tmp
in memory directories
/dev
/proc conversation with the kernel
/sys Linux 2.6 hot plugging
/usr Unix System Resources
/usr/bin
/usr/include
/usr/lib
/usr/local
/usr/share
/usr/src
/var variable data
/var/log
/var/log/messages
/var/cache
/var/spool
/var/lib
/var/...
practice: file system tree
solution: file system tree