Wd0000000 - Typical Unix/Linux Directories / Root directory...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Typical Unix/Linux Directories / Root directory (ancestor to all directories). /home Used to store users’ home directories. /bin Common system binaries (commands). /usr/bin Common utilities (commands) for users. /usr/sbin Common utilities for user administration. /etc General System Admin. Files (eg passwd) /var Dynamic files (log files) /tmp, /var/tmp Temporary files for programs /dev Device files (terminals, printers, etc.) Why make files hidden? To clean up directories To hide backups To protect important files from accidental deletion Common Commands pwd will show your current directory cd is used to change current directory, eg. cd directory-name ls - lists information about files and directories o ls -a - all files (including hidden) o ls -l - long form, gives more information about files o ls -F - indicate directories with a slash, executables with an asterisk o ls -d - gives information about the directory itself, not contained files o these options can be mixed and matched, eg. ls -ld mkdir - to create directories o mkdir -p - to create a directory & any parent directories not already existing rmdir - to delete empty directories, eg. rmdir directory-list mv cp source-file destination-file - to copy files (careful, overwrites destination with no warning) rm - to delete files, eg. rm file-list o rm -r - to delete directories including files and subdirectories
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/26/2010 for the course EAC 150 taught by Professor Marlyn during the Spring '10 term at Seneca.

Page1 / 5

Wd0000000 - Typical Unix/Linux Directories / Root directory...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online