Appendix C: Linux File Structure; Table 7.15: Linux Directory Structure; Table 7.16: File Manipulation Commands - Avocent Cyclades ACS Command Reference Manual

Advanced console server
Table of Contents

Advertisement

148
ACS Advanced Console Server Command Reference Guide

Appendix C: Linux File Structure

The Linux file system is organized hierarchically, with the root directory represented by the
forward slash (/) symbol. All folders and files are nested within each other below this base
directory. Table 7.15 displays the Linux directory structure.

Table 7.15: Linux Directory Structure

Path
Description
/home
Contains the working directories of the users.
/bin
Contains applications and utilities used during system initialization.
/dev
Contains files for devices and ports.
/etc
Contains configuration files specific to the operating system.
/lib
Contains shared libraries.
/proc
Contains process information.
/mnt
Contains information about mounted disks.
/opt
Location where packages that are not supplied with the operating system are stored.
/tmp
Location where temporary files are stored.
/usr
Contains most of the operating system files.
Basic Linux commands
Table 7.16 describe the basic Linux commands for file manipulation or changing directory
and contents.

Table 7.16: File Manipulation Commands

Command
cp file_name destination
• cp text.txt /tmp
• cp /chap/robo.php ./excess.php
rm file_name
mv file_name destination
Description
Copies the file indicated by file_name to the path
indicated by destination.
• Copies the file text.txt in the current directory to the
tmp directory.
• Copies the file robo.php in the chap directory to the
current directory and renames the copy excess.php.
Removes the file indicated by file_name.
Moves the file indicated by file_name to the path
indicated by destination.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents