Solutions
Solutions
Intro 1 :
ssh [email protected]
whoami
su - demo
cal 12 2002
ls -a
ls -l
cp yearfile yearfile2
cp yearfile yearfile3
mv yearfile3 thisyear
rm yearfile
Intro 2 :
Test
cd ~
mkdir work letters scripts
mkdir work/progs work/tutorial work/misc
mv vimrc ~/work/progs
cp ~/bigfile ~/work/tutorial/bigfile2
cp ~/work/tutorial/bigfile2 ~/scripts
Network Services 1
cd ~mysql
pwd
/var/lib/mysql
mkdir ~/gordon
mkdir ~/Gordon
mkdir ~/My\ Documents
Wildcard:
cd ~
cp
file ~/work/
ls ~/work/
cp thismonth ~/letters/let1.doc
cd ~/letters/
cp let1.doc let2.doc
cp let1.doc let3.doc
ls
cp ~/letters/let1.doc ~/work/misc/rpt1.doc
cp ~/letters/let2.doc ~/work/misc/rpt2.doc
cp ~/letters/let3.doc ~/work/misc/rpt3.doc
ls ~/work/misc/
mv ~/work/misc/[23] ~/work/scripts/
rm -i ~/work/scripts/r*
ln ~/bigfile ~/work/progs/biglink
ls -l ~/bigfile
ln -s ~/thismonth ~/work/progs/mylink
ln -s /home/demo/thismonth ~/work/progs/mylink2
ls -l ~/work/progs/mylink2
Permission
stat -c "%a" /home/demo/bigfile
Network Services 2
ls -l /home/demo/bigfile
026
Pipes
test
Essentials
ls / | wc -l
Network Services 3
id -u operator
ls -ld /var/cache/httpd
du -sh /usr/share/doc/git-*
df -h /
cd /home/demo
cp file /home/demo/work/
Network Services 4