Comp TIA Linux+ Bakersfield College- Ch.4
Unlock all answers in this set
Unlock answersquestion
            The root user utilizes the chgrp command to give group ownership of a file to another user. What must the root user do to regain group ownership of the file?
answer
        Run chown and list the root user as the new owner
question
            A file has the following permissions r----x-w-. The command chmod 143 would have the same effect as this command
answer
        chmod u=x,g=r,o=wx file1
question
            umask 731
answer
        changes permissions on all created filed to ---r--rw-
question
            after typing the ls-F command, you see the following line in the output: -rw-r-xr-- 1 user1 root 0 Apr 29 15:40 file1 what does this mean?
answer
        User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file
question
            Given the following output from the ls command, how many files are linked with file1?     -rw-r--r-- 3 root root 282 Apr 29 22:06 file1
answer
        two files are linked with file1
question
            the command chmod 317 file1 would produce which of the following lines in the ls command?
answer
        --wx--xrwx1 user1 root 0 Apr 29 15:40 file1
question
            rwxrwxrwx
answer
        default permissions given to directories
question
            rw-rw-rw-
answer
        default permissions given to files
question
            which command
answer
        searches for a file only in directories that are in the PATH variable
question
            execute, read, write
answer
        3 standard Linux permissions
question
            /var directory
answer
        contains spools and log files
question
            mv command
answer
        moves directories and files
question
            what must a used do to run cp or mv interactively and be asked if she wants to overwrite an existing file?
answer
        just type cp or mv as they run in interactive mode by default
question
            FHS
answer
        created to define a standard directory structure and common file location for Linux
question
            when applied to a directory SGID special permission_____________________.
answer
        causes all new files created in the directory to have the same group membership as the directory and not the entity that created them
question
            When you change the data in a file that is hard linked to three others,_______________.
answer
        The data in the file you modified as well as the data in all hard linked files are modified as they share the same data and all have the same inode and file size
question
            chown user1:root file1
answer
        will change the user ownership and group ownership of file1 to user1 and root respectively
question
            + symbol next to a file in your home directory appended to the mode
answer
        means additional entries exist within the ACL of the file that can be viewed using the getfacl commmand
question
            A symbolic link is also know as a soft link and is depicted by an @ appearing at the beginning of the filename when viewed using ls-l command.
answer
        false
question
            hard links
answer
        need to reside on the same filesystem as the target
question
            symbolic links
answer
        do not need to be on the same filesystem as the target
question
            who can modify a file that has the immutable attribute set?
answer
        no one can modify
question
            tail command
answer
        a linux command used to diplay lines of text at the end of a file
question
            gedit editor
answer
        a common text editor used within GUI environments
question
            linked file
answer
        the files that represent the same data as other files
question
            emacs
answer
        a popular and widespread text editor more conducive to word processing than vi. It was originally developed by Richard Stallman
question
            concatenation
answer
        The joining of trext together to make one larger whole. In Linux, words and strings of text are joined togetter to form a displayed file
question
            strings command
answer
        a linux command used to search for and display text characters in a binary file
question
            vi editor
answer
        a powerful command-line text editor available on most unix and linux systems
question
            socket file
answer
        a named pipe connecting processes on two different computers; it can also be represented by a file on the filesystem
question
            head command
answer
        a linux command that displays the first set of lines of a text file
question
            od command
answer
        a linux command used to display the contents of a file in octal format
question
            locate
answer
        The fastest method to search for files in the Linux directory tree is to use this command
question
            rwx
answer
        represented by the number 7
question
            symbolic links
answer
        commonly made to directories to simplify navigating the filesystem tree
question
            cp command
answer
        command used to copy a file
question
            /root
answer
        in the FHS, this directory is the root users home directory
question
            $
answer
        metacharacter used with the echo command to see the contents of a certain variable in memory
question
            sticky bit
answer
        use the command chmod 1777 data, which allows all users to add files to the data directory. This is because you gave the write permission, however users can only delete files that they own in data
question
            --wx--xrwx
answer
        the command chmod 317 file1 would produce which of the following permissions?
question
            chmod
answer
        command used to change the permissions for a certain file or directory
question
            execute, read, write
answer
        standard linux permissions