Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chapter 4 Managing files CompTIA Linux+ (Managing files (File commands,…
Chapter 4
Managing files
CompTIA Linux+
Managing files
Managing links
ln: creates links (similar to Windows shortcuts)
Directory commands
mkdir: creates a directory
rmdir: destroys a directory
File archiving commands
tar: archives data to other media
cpio
Copy-out: creates an archive and copies files into it
Copy-in: extracts data from an existing archive
Copy-pass: Combines copy-out and copy-in
dd: can be a good way to create exact backups of entire partitions
File commands
ls: displays the names of files in a directory
cp: copies a file
mv: to move files and directories from one location to another
rm: deletes a file
touch: sets the modification and access times to the current time
File naming and Wildcard expansion rules
Filenames can contain uppercase or lowercase letters, numbers, and even most punctuation and control characters
2.Managing File Ownership
Changing a file's owner
Use the command chown
Changing a file's group
Use the command chgrp
Accessing file ownership
Use the command ls -l
Controlling access to files
Changing a files mode
Use command chmod
Setting the default mode and group
umask: receive an octal value that represents the bits of permission
Understanding permissions
Linux file type codes
-: normal data file
d: directory
l: symbolic link
p: named pipe
s: socket
b: block device
c: character device
rwx
read
write
execute
Changing file attributes
Use the command chattr
4.Managing disk quotas
Enabling quota support
You must enable support via the Quota Support Kernel option in the filesystem area when compiling your kernel
Setting quotas for users
Use command edquota
Location files
The FHS
FSSTND
Standardized the programs that reside in /bin and /usr/bin
Specified that executable files shouldn't reside in /etc
Removed changeable files from the /usr directory
Tools for locating files
find: finds files by searching through the specified directory tree
locate: works from a database that it maintains
whereis: searches for files in a restricted set of locations
which: searches your path for the command that you type and lists the complete path to the first match it finds
type: it tells you how a command you type will be interpreted
Daniela Porras Quiros
2015071255