Basic file manipulation commands – Cyclades PC400 User Manual
Page 34

Cyclades-PC400
34
Appendix A - Linux
Installation Manual
/home
Contains the work directories of system 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 not supplied with the operating system are stored.
/tmp
Location where temporary files are stored.
/usr
Contains most of the operating system files.
/var
Contains operating system data files.
Basic File Manipulation Commands
The basic file manipulation commands allow the user to copy, delete and move files and create and delete
directories.
cp
file_name
destination
a) cp text.txt /tmp
b) cp /chap/robo.php ./excess.php
Copies the file indicated by
file_name
to the path indicated by
destination
. a) copies the file text.txt in the current directory to the tmp
directory. b) copies the file robo.php in the chap directory to the
current directory and renames the copy excess.php.
rm
file_name
Removes the file indicated by
file_name
.
mv
file_name destination
Moves the file indicated by
file_name
to the path indicated by
destination.
mkdir
directory_name
a) mkdir spot
b) mkdir /tmp/snuggles
Creates a directory named directory_name. a) creates the directory
spot in the current directory. b) creates the directory snuggles in the
directory tmp.
rmdir
directory_name
Removes the directory indicated by
directory_name
.