Everything
in Linux is considered a file, even the hard disk or the CD/ROM device.
All files and directories appear under the root directory (represented
by a single slash, “/”). You can refer to any file or directory using
either a full path (for example /home/bob/file.txt) or a relative path (for example, if your current directory is /home/bob/, you could refer to the file simply by typing file.txt).
A directory file is similar to a folder in Windows, and it can contain files and other directories. Hardware devices are represented by a special file stored in the /dev directory (for example, /dev/sda represents the first hard disk on the system).
All files and directories appear under the root directory (“/“). Below that is a set of common directories in the Linux system (bin, dev, home, lib…):
In the picture above you can see the file hierarchy under the root directory.
A directory file is similar to a folder in Windows, and it can contain files and other directories. Hardware devices are represented by a special file stored in the /dev directory (for example, /dev/sda represents the first hard disk on the system).
All files and directories appear under the root directory (“/“). Below that is a set of common directories in the Linux system (bin, dev, home, lib…):
In the picture above you can see the file hierarchy under the root directory.
Post a Comment