Contents
Exercise: Unix Concepts
-
Mount:
-
Find out what devices are mounted on which
directories on the system.
-
What is the command to mount a DOS floppy ?
-
What is the command to mount the first partition of the
IDE secondary master hard disk with
a Linux extended-3 (ext3) filesystem ?
-
Copy and CO.:
-
Create a file with: cat >testfile
(you can type some text then finish with CTRL-d).
-
Look at the content of "testfile".
-
Create a sub-directory tmp under your home directory,
then yet another sub-directory test under tmp.
-
Copy "testfile" to ~/tmp/test , then mv the test directory
up into your home,
then in the "global" /tmp directory.
Go to /tmp and check.
-
Remove everything you created again.
-
File Rights:
-
Create again a testfile. What are the default rights ?
-
Delete the file, change the default rights so that
nobody except the people in you group have read or write
permissions, then re-create the file.
-
Now modify the current rights of your file:
... so that only you can read or write the file.
... so that nobody can write the file.
... so that you can execute the file.
You may execute it (on you own risk) !
... so that everybody can read or write the file.
-
mtools:
Copy "testfile" to a DOS floppy (check with mount and mdir).
-
Users:
-
Who are you ( ID, group(s) ) ?
-
Who else is logged into the machine you are using at present ?
-
Processes:
-
How may processes carry you name ?
-
Who is running the process
that consumes most CPU time or most memory ?
-
Pipes:
How many files in the /lib directory contain the letters
"r", "n", "d"
in any combination
(use ls -1 and grep(s) in a pipe-chain) ?