UCT - BEN FROST
GOAT NOTES: UNIX (CSC2001F)
Using Unix:
Useful Unix Utilities:
Unix Proficiency Test Skeleton:
LOG-IN:
ssh
<password>
CORE TASKS:
Create a directory called dir1 off your home directory:
cd
mkdir dir1
Change to dir1 and print out the path of the current directory:
cd dir1
pwd
Create another directory inside directory dir1 called dir2:
mkdir dir2
Create a zero-length/empty file called boo in dir2:
cd dir2
touch boo
Rename the file boo to wibble:
mv boo wibble
Create empty files a.txt, b.txt and c.txt in dir1:
cd ..
touch a.txt
touch b.txt
touch c.txt
Archive and zip all .txt files in dir1 into one tarball:
tar -czvf tarball.tgz a.txt b.txt c.txt
Remove the directory dir1 and its contents with one command:
1
GOAT NOTES: UNIX (CSC2001F)
Using Unix:
Useful Unix Utilities:
Unix Proficiency Test Skeleton:
LOG-IN:
ssh
<password>
CORE TASKS:
Create a directory called dir1 off your home directory:
cd
mkdir dir1
Change to dir1 and print out the path of the current directory:
cd dir1
pwd
Create another directory inside directory dir1 called dir2:
mkdir dir2
Create a zero-length/empty file called boo in dir2:
cd dir2
touch boo
Rename the file boo to wibble:
mv boo wibble
Create empty files a.txt, b.txt and c.txt in dir1:
cd ..
touch a.txt
touch b.txt
touch c.txt
Archive and zip all .txt files in dir1 into one tarball:
tar -czvf tarball.tgz a.txt b.txt c.txt
Remove the directory dir1 and its contents with one command:
1