The original Unix system have inspired a large number of platforms still in use or gone into oblivion. MS-DOS has taken features from UNIX. Therefore, Linux share similarities with DOS. Take one minute to compare the semblance of the command line interface and thefile system look with all major OS.
However, the Linux scripting may differ slightly from one distribution to the other (e.g.RED HAT and Slackware). The explanation to this goes back to the late 70's. During that time, its original distributor -AT&T- was banned from making commerce in the area of computing. As a result, the software was licensed to third parties to work on the development and distribution. The original Unix created at Bell labs was sold to Universities and it was named either BSD (for Berkeley System Design) or System V. Half of Linux packages is BSD based.
The major distributions like Red Hat and Debian are based on system V boot sequence. This may cause confusion for those who are shifting from one distributor to another because some files look misplaced. The most common directories are /bin, /root, /usr, /tmp, /lost+found, /mnt, /lib, /boot, /dev, /home. The directory hierarchy for BSD looks like this:
/bin/cdrom/etc/lib/mnt/proc/sbin/tmp/var
/boot/dev/home/lost+found/opt/root/usr*vmlinuz
Linux supports up to 256 character file names honoring its 32-bites nature. It is case sensitive. It can accept space between two or more sentences like "Tux the Penguin.html" within the GUI. However, the shell the command line is unable to invoke those files or directories. This shell interprets this name as Tux\ the\ Penguin instead and it should be invoked as such. Otherwise, press tab after typing Tux so Linux could complete the sentence automatically. The most common thing to do is to place an underscore when creating long file names.
The file system supports multi-user capabilities. That means that many people can login either directly or remotely. The user information is stored in the home directory. A new directory is created for each new user. This directory holds permissions to save and manipulate files only within the user's own directory. To add a new user just type adduser at the command line and follow the instructions.
Here is a brief description of the directories outlined above as well
as the files they often contain.
Most of this files are hidden because their name is preceded by a dot.
To view them just type ls -a
/usr/bin stores the standard programs and /usr/local the nonstandard
ones.
![]()
![]()
![]()
Next:Editors1~A>Up:Linux
Tutorial Previous:Command
description