Linux File System
Linux File System
1. Linux uses ext2/ext3 file system, whilst Windows95/98/ME/XP use FAT or FAT23 file
system, and Windows NT/2000/XP/2003 use NTFS file system. The Linux file system is like
a tree branching out from the root directory (/). Login using the student username and
password, password, use pwd, cd, ls commands to draw the file system structure of Linux
operating system on your PC.
3. Go to your home directory, use du command to display the file size details in the current
directory and sub-directory.
4. Following are the Linux commands for daily uses, try them out!
6. Linux will show its real power when you combine several commands together using |, try
following commands and state the differences.
ls -l /etc
ls -l /etc | grep conf
ls -l /etc | grep conf | more
ls -l /etc | grep conf | tail
ls -l /etc | grep conf | tail | wc
The following set of steps are optional go to step 13 if you do not wish to do them
7. In Linux, you can access different file system by using mount, for example, following will
open a MS-DOS floppy for use (insert the MS-DOS floppy disk first!):
12. You can also use rm to remove folders, even if they are not empty, how?
13. If you still have time, go to the KDE graphical interface by typing startx, and find out
what are the graphical equivalent programs for the above tasks.
Questions:
1. How can you display a files or directorys permission? What do permissions and mean? How
do you translate them into numerical values?
-rwxr-xr-x
-rw-rw-r--
drwxr--r--
2. Briefly explain what are following directories for in a Linux file system, /dev, /etc,
/home, /bin, /usr, /tmp, /var etc.
3. Use Linux man pages to understand the use pwd, ls, df, du, chmod, cp, mv, rm, cat, pico,
more, less, head, tail, grep, tar.
5. How can you use su command to switch from ordinary user to root user, and vice versa?