Archive for the 'Filesystem' Category

Linux installs a range of directories on the hard disk. Here are some of the most important:
/ is the root of the filesystem.
/boot is where the Linux Kernel and Bash are stored.
/home is where the each user’s files are stored.
/root is where the root user’s files are stored.
/etc contains configuration files.
/etc/skel [...]


Every file and directory on a Linux filesystem has permissions attached to it. They can be referred two in two formats: by a six digit set of letters or by a set of three numbers. Here’s an example in letters:
rwxr-xr-x
The first three letters mean that the file can be read, [...]


Colourful ls

14Dec07

Some systems display the ls command’s output in black and white. On Fedora, it’s in colour, thanks to the settings of a file called /etc/DIR_COLORS (individual users can set their own colours with a .dir_colors file in their home directory). By default (on Fedora at least) ls is set up [...]


For each file saved on a Linux filesystem, there is an i-node which contains information about the file, such as how large it is and who owns it. One of the nifty things you can do is to give a file two names. Let’s say you have a file called heinlein.txt. By entering the following [...]