ERGASTHRIA  H/Y  (2h EVDOMADA)

Eksoikeiwsh me dhmiourgia directories/files, antigrafh tous kai diagrafh tous kai dhmiourgia fakelou me to vi editor

mkdir mydir1
mkdir mydir1/mydir2
cd mydir1/mydir2

Isodynamo me:
mkdir mydir1
cd mydir1
mkdir mydir2
cd mydir2

cd ..         (eimai sto /home/ugrads/cl2004/myusername/mydir1)

cd mydir2
cd
pwd      (eimai sto
/home/ugrads/cl2004/myusername - to home directory mou)

cd mydir1
rmdir mydir2     (TO OPOIO PREPEI NA EINAI ADEIO)
cd ..

cp ~nchristakis/TestForVi.txt .     (ANTIGRAFH TOY ARXEIOY STO home directory)
cp ~nchristakis/TestForVi.txt  mydir1  (ANTIGRAFH TOY ARXEIOY STO  mydir1)
ls           (Vlepw oti to arxeio yparxei sto home dir)

cd mydir1
ls       
(Vlepw oti to arxeio yparxei kai sto mydir1)
cp TestForVi.txt Test1.txt
ls     (Vlepw oti twra exw 2 arxeia-ta opoia fysika einai ta idia)

rm Test1.txt
ls     (Vlepw mono to TestForVi.txt)
mv TestForVi.txt Test1.txt
ls    (Vlepw mono toTest1.txt, opws metonomasa to arxeio)

cd ..     (pisw sto home dir)
cp TestForVi.txt mydir1  (antigrafh pali sto mydir1)
rmdir mydir1     (Den mporw giati den einai adeio)
rm mydir1/Test*     (Diagrafh olwn twn arxeiwn pou ksekinoun me th leksh Test)
rmdir mydir1    (Twra mporw na diagrapsw to mydir1 pou einai pleon adeio)

vi TestForVi.txt

(OI FOITHTES NA AKOLOYTHHSOYN TIS ODHGIES POY TOYS DINONTAI MESA STO ARXEIO AYTO)