|
Using the Linux Ls Command With Examples to See System Directories - Linux Commands Quick Tips
Article Word Count: 284 [View Summary] Comments (0) |
|
The Linux System Directories "Off Of" The / (Root) Directory
There are several important Linux system directories that are located "off of" the / (root) directory of the Linux filesystem.
Examples of Using the Linux ls Command to View Some Linux System Directories
Some of the directories below may not exist for your Linux distribution. If there is no output from the following commands, just read the descriptions and continue.
View the Linux system directories off of the / root directory.
- $ cd cd / ; ls -l | less
If necessary, use the down arrow to see more directories and press q to quit out of the less command.
Now change into the boot directory (that is off of the / directory) and look at its contents.
- $ cd /boot ; ls -l | less
This directory contains the kernel program file and other files used to boot a system. Press q to quit.
Now change directory back to the / (root) directory.
- $ cd /
You don't have to change into a directory to view the contents of the directory. You can use a path with a command, such as the ls command, to see the contents of a directory.
Now use the ls command to get a listing of the initrd directory by using a path, in this case the path of /initrd.
- $ ls -l /initrd
By default, the initrd directory is empty. It is used during the Linux boot process.
Do not put anything in this directory or remove it. If you remove this directory, your system will not boot and you will see a "kernel panic" error message.
The Linux system directory and command concepts covered here apply to ALL Linux distributions, including Red Hat, Ubuntu, openSUSE, SUSE, Debian, Fedora and Slackware Linux.
|
By the way...do you want to learn exactly how to use Linux and run Linux commands for Linux System Administration and get real, practical Linux training experience by running hundreds of examples of Linux commands? Just click to download my free new Linux commands training course book and Linux audio podcast (.mp3) files here: Linux Commands Training Mini-Course Clyde Boom says "Learn how to use Linux commands with easy, self-paced Linux training materials that show you how to run hundreds of examples of the essential Linux System Administration commands - and get that new and better job, promotion, raise - or keep your current job!" You can get your instant access to my free Linux commands training course at: http://www.LinuxCommandsTrainingCourse.com Article Source: http://EzineArticles.com/?expert=Clyde_E._Boom |
|
This article has been viewed 139 time(s).
Article Submitted On: December 05, 2008
-
MLA Style Citation:
Boom, Clyde E. "Using the Linux Ls Command With Examples to See System Directories - Linux Commands Quick Tips." Using the Linux Ls Command With Examples to See System Directories - Linux Commands Quick Tips. 5 Dec. 2008 EzineArticles.com. 10 Feb. 2010 <http://ezinearticles.com/?Using-the-Linux-Ls-Command-With-Examples-to-See-System-Directories---Linux-Commands-Quick-Tips&id=1760927>.
-
APA Style Citation:
Boom, C. E. (2008, December 5). Using the Linux Ls Command With Examples to See System Directories - Linux Commands Quick Tips. Retrieved February 10, 2010, from http://ezinearticles.com/?Using-the-Linux-Ls-Command-With-Examples-to-See-System-Directories---Linux-Commands-Quick-Tips&id=1760927
-
Chicago Style Citation:
Boom, Clyde E. "Using the Linux Ls Command With Examples to See System Directories - Linux Commands Quick Tips." Using the Linux Ls Command With Examples to See System Directories - Linux Commands Quick Tips EzineArticles.com. http://ezinearticles.com/?Using-the-Linux-Ls-Command-With-Examples-to-See-System-Directories---Linux-Commands-Quick-Tips&id=1760927