Term
| what are the two file systems created by default when RHEL is installed |
|
Definition
|
|
Term
|
Definition
| File-system Hierarchy Standard (FHS) |
|
|
Term
|
Definition
| memory based file system, created at boot up |
|
|
Term
|
Definition
| created on physical media |
|
|
Term
|
Definition
| / - the top level file system in the FHS |
|
|
Term
|
Definition
| the binary directory, holds crucial executable commands, contains static data files |
|
|
Term
|
Definition
| library directory, shared files, disk-based, contains static data files |
|
|
Term
|
Definition
| system binary directory, crucial system administration commands, contains static data files |
|
|
Term
|
Definition
| etcetera directory, system configuration files, contains dynamic data files |
|
|
Term
|
Definition
| files that have lost their name (system crash) |
|
|
Term
| command to recreate lost+found directory |
|
Definition
|
|
Term
|
Definition
| home directory of the user root |
|
|
Term
|
Definition
| server data for web sites, databases, etc. |
|
|
Term
|
Definition
| disk based, contains kernel(s), boot loader, boot configuration files, default size 100MB, static files |
|
|
Term
|
Definition
| frequently changed data, including /var/log, /var/spool/mail |
|
|
Term
|
Definition
| holds print jobs, cron jobs, email messages, other queued items |
|
|
Term
|
Definition
| large temporary files and files that need to survive reboots |
|
|
Term
|
Definition
| Unix System Resources (/usr) contains general fles related to the system |
|
|
Term
|
Definition
| additional executable commands |
|
|
Term
|
Definition
| additional system administration commands |
|
|
Term
|
Definition
| sys admin repository for commands and tools downloaded or added to the system |
|
|
Term
/usr/local/bin /usr/local/etc /usr/local/man |
|
Definition
downloaded or added executable files, etc holds their configuration files, man holds the man pages |
|
|
Term
|
Definition
| contains header files for C |
|
|
Term
|
Definition
| shared man pages and documentation, and configuration files |
|
|
Term
|
Definition
| library files for programming sub-routines |
|
|
Term
|
Definition
| dumping ground for temporary files, many created by programs |
|
|
Term
|
Definition
| additional software packages installed on the system, each with a sub-dir |
|
|
Term
|
Definition
| contains home directories for user files |
|
|
Term
|
Definition
| device files for hardware and virtual devices, a virtual file system |
|
|
Term
|
Definition
| data is moved in blocks, often with random access |
|
|
Term
|
Definition
| data is accessed in a serial manner, such as a mouse, keyboard, or serial printer |
|
|
Term
|
Definition
| AutoFS will mount NFS file systems here. Virtual file system |
|
|
Term
|
Definition
| a Virtual file system where removable media is automatically mounted |
|
|
Term
|
Definition
| a virtual file system where AutoFS mounts local resources |
|
|
Term
|
Definition
| a virtual file system containing dynamic data files with information about the current state of the running kernel |
|
|
Term
|
Definition
| System file system, a virtual file system, contains information about the currently configured hardware |
|
|
Term
|
Definition
| SELinux file system - contains all current settings for SELinux |
|
|
Term
| how is the absolute path started |
|
Definition
|
|
Term
| enter ll, what is the prefix for link files |
|
Definition
|
|
Term
| enter ll, what is the prefix for directories |
|
Definition
|
|
Term
| command to display detailed information about a file |
|
Definition
|
|
Term
| command to determine what a linked file is linked to |
|
Definition
|
|
Term
| enter ll, what is the prefix for a character (raw) device file |
|
Definition
|
|
Term
| enter ll, what is the prefix for a block device file |
|
Definition
|
|
Term
| command to get detailed information about a device file |
|
Definition
|
|
Term
|
Definition
| AKA - a FIFO, used for Inter Process Communication (IPC) |
|
|
Term
| enter ll, what does the prefix p mean |
|
Definition
| a named pipe, aka FIFO, used for IPC (Inter Process Communication) |
|
|
Term
|
Definition
| works as a two way named pipe, used for IPC |
|
|
Term
| enter ll, what does the s prefix mean |
|
Definition
| a socket - used for two way communication |
|
|
Term
| the max number of alphanumeric characters of a file or directory name |
|
Definition
|
|
Term
| create a new file using cat |
|
Definition
cat > newfile enter text ctrl+d to exit |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
| make a directory and subdirectories |
|
Definition
| mkdir -p scripts/perl/perl5 |
|
|
Term
| show the first 10 lines of a file |
|
Definition
|
|
Term
| show the first 3 lines of a file |
|
Definition
|
|
Term
| show the last 10 lines of a file |
|
Definition
|
|
Term
| show the last 3 lines of a file |
|
Definition
|
|
Term
| what does view filename do? |
|
Definition
| opens a file in the vi editor |
|
|
Term
| extract the legible information from a file |
|
Definition
|
|
Term
| what does the string command do |
|
Definition
| displays legible information embedded in a non-text or binary file |
|
|
Term
| copy a file and automatically overwrite |
|
Definition
|
|
Term
| copy a file and prompt if the file already exists |
|
Definition
|
|
Term
| what is the switch to have cp prompt before overwriting a file |
|
Definition
|
|
Term
| what is the recursive option for the cp command |
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
| remove a file, but be prompted before removing |
|
Definition
|
|
Term
| remove an empty directory |
|
Definition
|
|
Term
|
Definition
|
|
Term
| remove a full directory, but get prompted for each item |
|
Definition
|
|
Term
| move a file, but prompt before overwriting anything |
|
Definition
|
|
Term
| display file statistics on a file |
|
Definition
|
|
Term
| find the last accessed time of a file |
|
Definition
|
|
Term
| display the available space of a directory |
|
Definition
|
|
Term
| display directory statistics |
|
Definition
|
|
Term
| look for a the pattern "root" in /etc/group and show line numbers |
|
Definition
|
|
Term
| command to change an attribute |
|
Definition
|
|
Term
|
Definition
|
|
Term
| set a file so that it cannot be changed, renamed, or deleted |
|
Definition
|
|
Term
| set a file so that the access time cannot be changed |
|
Definition
|
|
Term
| set a file so that it can only be appended |
|
Definition
|
|
Term
| set a file so that it cannot be deleted |
|
Definition
|
|
Term
| set a file so that it cannot be backed up with dump and cannot be changed, even by root |
|
Definition
|
|
Term
| search a file and exclude the pattern "root" |
|
Definition
|
|
Term
| show the line numbers for the pattern "root" in /etc/group |
|
Definition
|
|
Term
| display the names of the files that show the pattern user1 in a list of files |
|
Definition
| grep -l user1 /etc/group /etc/passwd /etc/hosts |
|
|
Term
| search for the lines that begin with root in /etc/passwd |
|
Definition
|
|
Term
| search for all the empty lines in /etc/passwd |
|
Definition
|
|
Term
| search for root, or Root in /etc/password |
|
Definition
grep -i root /etc/passwd -i = ignore case |
|
|
Term
| print all the lines from the ll /etc output that show drwx or xin |
|
Definition
| ll /etc | grep -E 'drwx|xin' |
|
|
Term
| find a file named filename starting at root |
|
Definition
|
|
Term
| compare two files, display the results in three sections |
|
Definition
|
|
Term
| find files larger than 100MB in the usr directory |
|
Definition
|
|
Term
| show lines of /etc/passwd that only contain "root" and nothing else |
|
Definition
|
|
Term
| what is the command syntax for find, "find", then what |
|
Definition
| find, path, option, action |
|
|
Term
| find files smaller than 1GB in root's home directory |
|
Definition
|
|
Term
| find files larger than 1GB in your home directory |
|
Definition
|
|
Term
| find files in /home that have user1 as the owner and group |
|
Definition
| find /home -user user1 -group user1 |
|
|
Term
| find files in /home that have the owner as user1, but the group as something else |
|
Definition
| find /home -user user1 -not -group user1 |
|
|
Term
| find files in /etc/rc.d that were modified more than 120 days ago |
|
Definition
| find /etc/rc.d -mtime +120 |
|
|
Term
| find files in / named core not owned by root |
|
Definition
| find / -name core -not -user root |
|
|
Term
| find files in /etc/rc.d that were modified exactly 10 days ago |
|
Definition
|
|
Term
| find files in /etc/rc.d that have not been accessed in the last 90 days |
|
Definition
| find /etc/rc.d -atime -90 |
|
|
Term
| find character files in /dev with 666 permissions |
|
Definition
| find /dev -type c -perm 666 |
|
|
Term
| find link files in /usr with 777 permissions |
|
Definition
| find /usr -type l -perm 777 |
|
|
Term
| find files in /usr that have at least 444 permissions |
|
Definition
|
|
Term
| find character files in /dev that are world writable |
|
Definition
| find /dev -type c -perm -222 |
|
|
Term
| find block device files in /dev with the write bit set at any of the three levels |
|
Definition
| find /dev -type b -perm +222 |
|
|
Term
| search for core files in the entire directory tree and prompt to delete them if found |
|
Definition
| find / -name core -ok rm {} \; |
|
|
Term
| find core files in the entire directory tree and delete them without prompting |
|
Definition
| find / -name core -exec rm {} \; |
|
|
Term
| find core files starting in / and rename them to the same name with .old extension |
|
Definition
| find / -name core -exec mv {} {}.old \; |
|
|
Term
|
Definition
|
|
Term
|
Definition
| /var/lib/mlocate/mlocate.db |
|
|
Term
| how is mlocate.db updated |
|
Definition
| updated daily with /etc/cron.daily/mlocate.cron |
|
|
Term
| how can mlocate.db be updated manually |
|
Definition
|
|
Term
| how often is the database used by locate updated |
|
Definition
| mlocate.db is updated daily via the mlocate.cron script |
|
|
Term
|
Definition
| checks the mlocate.db for the string entered |
|
|
Term
| locate files with "passwd" in the name |
|
Definition
|
|
Term
| locate 3 occurrences of passwd |
|
Definition
|
|
Term
| locate all files with the .sh extension and list the first five |
|
Definition
|
|
Term
| sort a file alphabetically |
|
Definition
|
|
Term
|
Definition
|
|
Term
| sort a file on the second column |
|
Definition
|
|
Term
| sort a file numerically on the second column |
|
Definition
|
|
Term
| sort a file numerically in reverse order |
|
Definition
|
|
Term
| sort the output of the ll command |
|
Definition
|
|
Term
| sort the output of ll on the 6th column which is sorting by the months |
|
Definition
|
|
Term
| sort the results of ll and place them in a file sort.out |
|
Definition
| ll / | sort -o /tmp/sort.out |
|
|
Term
| ls -al /etc/skel and sort on the 6th (months) and 7th column |
|
Definition
| ls -al /etc/skel | sort -k 6M -k 7 |
|
|
Term
| what is the unique number assigned to each file as it is created |
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
| like a pointer. Can cross file system boundaries. Can be used to link directories |
|
|
Term
|
Definition
|
|
Term
| symlink two files. the original file is named filename |
|
Definition
|
|
Term
| do an ll showing inode numbers |
|
Definition
|
|
Term
| there is a symbolic link to a file, the orignal is deleted, what happens to the link |
|
Definition
| it stays put, but points to something that does not exist |
|
|
Term
|
Definition
| an association of two or more files to a single inode number. The files are then identical |
|
|
Term
| limitations of a hard link |
|
Definition
| can't link across file systems and can't link directories |
|
|
Term
| file2 exists, hard link file20 and file2 |
|
Definition
|
|
Term
| file2 exists, hard link file20 and file2 |
|
Definition
|
|