Linux File System Flashcards
/ (slash)
Root directory - starting point
/bin (sub-directory)
binaries /bin
/home (sub-directory)
personal env for users
/var (sub-directory)
/usr
program files
/mount
to attach files to root using NFS
/sbin
root binaries
/usr
like windows program files
/boot
for booting - usually on separate file and contains the kernel
/dev
devices
device files provide connection to h/w
/etc
configuration files
text readable
/opt
for dbs
/proc
interface to linux kernel
cpuinfo
/srv
services
store document roots for web server or ftp server
/sys
h/w info and it is one of the advanced directories
/run
new dep directory temp need to write files
/tmp
temporary files
/var
/var/log
wide variety of files
duh - log files
ls -l
long list
cat
dumps contents of file to terminal screen
ls
lists files
man ls
permissions
user owner | group owner | others
directory types
d
l
directory
symbolic link
hidden files begin with a
.
ls -a
reveals hidden files
ls -lrt
sorts files by last modification date
ls -ld
to show properties of directory
globbing
using wildcards
- (star) - glob
ls *
lists everything
? - glob
specific to one character
[a - c ] - glob
specify range between brackets
globs can be combined
?[a-c]*
[a-c]*
ls -d a*
lists just the names of files and not contents
cp
copy