After talk about special character on linux command last week, now let understand on disk quota here. In Linux, a system of disk quotas enables the system administrator to restrict disk usage by individuals and groups.

Quotas can specify
- the maximum amount of total disk space allotted to a user or group
- The maximum number of files a user or group can create
You assign quotas by partition, so an individual or group who creates files on two partitions may have a different quota for each partition, or a quota for only one of the two partitions.
User and group quotas
User quotas and group quotas are independent of each other – so the value of the group quota is not the sum of the values of the users’ quotas in a group. When a user attempts to create a file, Linux first checks if there is a group quota for the user’s group. If a group quota for the group to which the user belongs has already been filled, the user can’t create the file, regardless of the status of the user’s quota. To create the file, the user must change groups. Every file that an individual user creates counts towards the quota of the user’s group. If the user isn’t part of a quota-restricted group, or if group quotas aren’t switched on for a partition, the user can create files on the partition as long as the user’s quota isn’t filled. (more…)
Posted by calvyn |
1 Comment »
Specially defined characters are essential for many of the Linux shell’s powerful features, such as filename completion and command substitution. The shell interprets these characters in a different way from other, regular characters on the command line. However, if you want to disable these characters, you can use a process called quoting.
Filename completion characters
Filename completion characters are metacharacters that enable you to abbreviate filenames or directory names. This saves time and lets you process files selectively, even if you don’t know their full names or locations.
Commonly used filename completion characters are included in the table below.
Filename completion characters
The * character (asterisk) is the most frequently used file completion character. You can use the string b*, for example, to match all the filenames beginning with the letter “b”. You can also use multiple asterisks to define a file. For example, *xx*.gif retrieves any filename that contains “xx” anywhere in its name and that has the .gif extension. (more…)
Posted by calvyn |
5 Comments »
Most PC users communicate with the operating system on their machines using a graphical user interface (GUI), such as those used in Microsoft Windows 2000 or Mac OS 9. Linux has its own GUIs, most notably GNU Network Object Model Environment (GNOME) and the K Desktop Environment (KDE). GUIs provide buttons, menus, icons, and all the other point-and-click features that have simplified modern computing so greatly. However, it is a mistake to assume that GUIs are always the best way to communicate with an operating system. Although GUIs certainly provide simplicity, they tend to obscure some of a computer’s capabilities from the user. This is where a shell comes in.

Advantages of using a shell
Greater control
A shell is a program that acts as an interface between the user and the operating system, just as a GUI does. However, a shell works without graphics – when you use one, you issue instructions to the operating system by typing in commands. In fact, the shell is often referred to as a command interpreter.
This may seem like a return to basic computing, but a command-line interface lets you exercise a degree of control over the operating system that would otherwise be lacking. There are a number of reasons for this: (more…)
Posted by calvyn |
8 Comments »
After talking on the Linux File Types in the previous entries, is time to learn the basic on mounting linux file systems. For the data contained on hard disks, disk partitions, network drives, and removable media to be accessed under Linux, it is necessary to attach – or mount – the devices containing the data to the Linux directory structure. The reason for this is that Linux treats every device or partition as a separate and independent file system. It also views all data as though it were in a subdirectory of the root (/) directory, regardless of the kind of device on which it is stored – even when it is kept on a separate computer.

It is an important part of the role of the Linux system administrator to ensure that file systems are mounted correctly, whether at boot time or manually, to ensure that all required data is available at the expected locations.
Advantages of mounting Linux file systems and devices
Devices are mounted at predetermined directories below the root file system. These are usually, although not always, special directories created for the purpose. The file systems that belong under the /var, /home, and /usr directories, for example, are kept on separate partitions or devices from the root file system. Network machines are frequently configured so that the /home data for all machines is actually stored on a single Network File System (NFS) server, which is then mounted under the /home directory on each individual machine. This enables users to access their own home directories in the usual locations, regardless of which computers they are actually logged on at. (more…)
Posted by calvyn |
2 Comments »
Recently I come across some linux command during I login to my customer site to retrieve activity log file, and also studies some of the linux file types, and simple command to know what is the file types at Linux Operating System.
Linux uses four basic file types:

- ordinary files
- directories
- symbolic links
- block and character device files
You determine a file’s type by issuing the ls -l command and reading the first character of each row of the output.
The typical output of the ls command is as follows:
$ ls –l
total 8
-rw-r–r– 1 root root 22 Oct 6 15:33 anormalfile
brw-rw—- 2 root disk 41, 0 May 5 1998 blockdev
crw-rw-rw- 2 root root 5, 0 May 5 1998 characterdev
drwxr-xr-x 2 root root 4096 Oct 6 15:33 subdir
lrwxrwxrwx 1 root root 11 Oct 6 15:35 symbolic -> anormalfile
Ordinary files begin with a dash (-), directories begin with d, symbolic links begin with the character l, block devices are prefaced with the character b, and character devices begin with the letter c. (more…)
Posted by calvyn |
7 Comments »