Quiz
Linux commands and file permissions: RPM, tar, chmod
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (115)
1In Linux, RPM can be defined as:
- ARadical performance machine
- BThe speed a record plays back at
- CRelational peak monitoring
- DThe Package Manager program for Red Hat Linux
- ERandom program memory
2In the command tar =cvjf foo.tbz a b c, what are a, b, and c?
- AIs the directory will be prepended to files; b and c are files inside it
- BMatching operators; anything starting with a, b, or c will be added
- CNothing; cvjf only expects one parameter
- DFile names to be added to the archive
3Information about the init process can be found in the /proc/1 directory.
- ATrue
- BFalse
4Linux distributive use this to add and remove software from the system:
- AApplication Programming Interface (API)
- BPackage manager
- CBash
- DCompiler
- EPartitioning tool
5Many open source licenses such as BSD and MIT do not contain the copyleft provisions and are thus not acceptable to the FSF (Free Software Foundation). These licenses are called ___ free software licenses.
- ALax
- BAgreeable
- CPermissive
- DIndulgent
6Most of NANO’s commands take the form of:
- AEscape followed by another character
- BMouse clicks
- CControl and another character
- DThe F1 though F12 function keys
- EAlt and another character
7Octal notation uses the following values for the permissions granted:
- Ar=7, w=5, x=0
- Br=4, w=2, x=0
- Cr=4, w=2, x=1
- Dr=3, w=2, x=1
8POP and IMAP are related to:
- AReading and writing music
- BLetting users log in to multiple with 1 set of credentials
- CServing web pages
- DSharing files
- EEmail
9Setting setgid on a directory…
- A… will allow scripts in the directory to be executed as the group owner of the directory
- B… will set the group owner of all files created in the directory to the group owner of the directory
- C… does nothing
- D… is not allowed by the system
10Software is backward compatible if:
- APeople still use old versions
- BIf the next version still works the same way
- CIt will supports old file doormats or applications
- DIs can be upgraded without downtime
11Software that allows hardware devices to communicate with the installed operating system is called?
- AInstructions
- BDrivers
- CPackage Packages
- DPrograms
12Structure of calling info pages
- AI [command]
- Binfo [command]
- Ccalinfo [command]
- D-info [command]
- Ehelp [command]
13The _GREP_ command…
- A… will display the line numbers in a file that contain a specific Regular Expression
- B… is not case sensitive
- C… will display all the lines in a file containing the specified Regular Expression
- D… will display all the lines that begin with the specified Regular Expression
14The _IF_ command looks for that exit code to consider a condition to be true?
- A255
- B1
- C0
- D2
- E10
15The “execute” permission on a file allows you to:
- AMove the file to a new directory
- BRun the file as a script
- CThis permission isn’t meaningful for text files
- DDelete the file
16The “setuid” permission...
- A… allows a command to be run as the file owner
- B… report the output of a script to the owner
- C… prevents the owner of a file from being changed
- D… allows files is a directory to be manipulated as by the directory owner
17The “sticky bit” permission…
- A… prevents others from removing files they don’t own from a common directory
- B… sets the group ownership of any new file created in a directory
- C… prevents others from overwriting files they don’t own in common directories
- D… changes the group ownership of existing files in a directory
18The /etc/group file what structure?
- Agroup_name:password_placehoder:GID:user_list
- Buser:group
- Cgroup:GID:user_list
- Dgroups -a
19The /proc directory contains a subdirectory for each process present on the system
- ATRUE
- BFALSE
20The asterisk character is used to represent zero or mode of any character in a filename.
- ARichtig
- BFalsch
21The chgrp command can be used on a file by:
- AOnly the file owner
- BA user belongs to the files current group
- COnly root
- DThe file owner and root
22The chmod command can be used on a file by:
- AA user that belongs to the current group
- BThe file owner
- COnly root
- DThe file owner and a root
23The chow command can be used to change the user owner on a file by:
- AThe file owner and root
- BOnly root
- CA user that belongs to the files current
- DThe file owner
24The command rm -r will…
- Agenerate an error; -r isn’t a valid option
- Bremove only empty directories
- Cprompt for each confirmation before deleting each file in a directory
- Dremove a directory along with any files or subdirectories
25To correct command structure for getting manual page looks like:
- Aman [command]
- Bmanual [command]
- Csos [command]
- Dhelp [command]
- Edate [command]
26The fdisk command is a tool used for working with the MBR partitioned disks.
- ARichtig
- BFalsch
27The free command outputs statistics about:
- ACPU usage
- Bsoftware usage
- CMemory usage
- DDisk usage
28The Linux platform that runs on mobile phones is called:
- AIOS
- BLinuxMobile
- CMicroLinux
- DTeledroid
- EAndroid
29The logging daemon on recent Linux distributions on system is called:
- Aknogd
- Brsyslogd
- Csyslogd
- Djournald
30The main purpose of using glob characters to be able to provide a list of filenames to a command.
- ARichtig
- BFalsch
31The most important consideration when choosing an operating system is:
- AWhat the intended use of the systems is
- BWhether or not is cloud-friendly
- CHow much performance is needed
- DThe licensing model of the operating system
- EThe total cost of ownership
32The most popular Linux platform for mobile phones is:
- AAndroid
- BBlackBerry
- CMobileLinux
- DIOS
- ESlackware
33The numbers of users logged in is a variable called USERS. How would you test to see if 5 users are logged in?
- Atest $USERS = 5
- Btest – f USERS = 5
- Ctest $USERS, 5
- Dtest $USERS -a 5
- Etest $USERS -eq 5
34The process (ps) command shows only processes running in the current shell by default.
- ARichtig
- BFalsch
35The Process ID (PID) of the init process is:
- A100
- B1
- C0
- D101
36The release cycle:
- AShould be long so that you have time before you need to upgrade
- BDescribes how long software will be supported
- CShould be shot so you always have the freshest releases
- DOnly has meaning for paid software
- EDictates how often software is update
37The rm command can delete multiple files at once.
- ARichtig
- BFalsch
38The Samba application is a:
- AFile Server
- BMail Server
- CSecurity Server
- DWeb Server
39The sudo command allows regular uses to…
- A… execute any command as root, after providing the root password.
- B… run any command as root, after providing the sudo password.
- C… execute commands as another user.
- D… run any commands as a system account without logging in.
40The term for individual computers running multiple systems at the same time:
- ADistribution
- BCloud priority
- CVirtualization
- DMultiRun
- EGoogleization
41To find files with a specific name, use the following command:
- Alocate “\[filenane]”
- Blocation -b [filenane]
- Clocation -b “\[filenane]”
- Dlocation “\[filenane]”
42Traditional UNIX systems allowed users to belong to how many groups?
- A256
- B10000
- C1
- D16
- E65000
43UID-s 1-499 are usually for what kind of users?
- ASystem accounts, such as server processes
- BRemote log-in accounts
- CAre not used accounts, but for group accounts
- DLog-in (human) users
44Virtualization means:
- ATwo users get different memory spaces on the same machine
- BA single host can be split up into multiple guests
- CA machine can swap memory to disk
- DA user can connect to a server over the network and use a virtual console
- EMany users can share one hard drive
45What are the advantages of solid state disks when compared to traditional spinning platter hard disks?
- ALow cost
- BLess heat
- CHigher capacity
- DFaster system boot times.
46What command we can use to change your current directory?
- Atouch
- Bls
- Cmv
- Dcp
- Ecd
47What difference between commands info and man?
- Ainfo to change directories, and man to additional help
- Bno differences
- Cinfo often is written more like “lessons” while man pages are written as documentation
- Dinfo to get a list of directories, and man to search
- Ethey are the same
48What directory contains a user’s home directory?
- A/user
- B/home
- C/
- D/roots
49What directory typically contains log files?
- A/var/log
- B/usr/log
- C/proc/log
- D/log
50What does a distribution provide to add and remove software from the system?
- APackage Manger
- BAPI
- CCompiler
- DBash
- EPartitioning tool
51What does this shell script do? [What does this shell script do?] (видимо здесь должно быть это, ибо это единственное совпадение в вопросах в интернета, но в самой базе текста ниже нет)
FOO =/tmp/foo
if [ ! -d$FOO ]; then
mkdir $FOO
fi
WHAT???- ANothing, since there is a problem with the conditions in the if statement
- BMakes the /tmp/foo directory a file by that name exists
- COutputs a massage to the screen
- DCreates /tmp/foo if it does not exist
- ECreates /tmp/foo and raisers an error if there is a problem
52What information is held inside _$?_?
- AThe number of arguments passed to the script
- BThe current process id
- CThe previous command’s exit code
- DThe name of the command run
- EThe current user ID
53What is a home directory?
- Aall of the above
- Bdirectory for displaying desktop files
- Cfolder for trash (ага, ну)
- Droot directory
- Ethe directory that your terminal windows is currently “in”
54What is a relative pathname?
- Awith relative paths, you display a list of commands available to execute
- Bwith relative pathnames you provide “directions” of where you want to go from the current directory
- Cwith relative paths, you get information about the current directory
- Dnone of the above
- Ewith relative path, you specify the files you want to display
55What is an inode?
- AThere is no such word
- Ba sophisticated big data search algorithm
- Cspecialized program for accounting names, identifiers and other data
- Dunique identifier number assigned to each file
- Etext viewer
56What is the absolute path?
- Apath to home directory
- Bdirectory where located other directories
- Cpath for arguments and commands
- Dcomplete paths from the root directory to a subdirectory or file
- Enone of the above
57What is the correct way to assign the world “Hello” to a variable? (there shouldn’t be spaces around =)
- Aecho “Hello” $amp;gtA
- BA = “Hello”
- Cecho $A “Hello”
- DA=“Hello” (есть различие с А = "Hello")
- E$A= “Hello”
58What is the correct way to assign the world “Hello” to a variable?
- Aecho $A “Hello”
- BA = Hello
- CA = “Hello”
- D$A = “Hello”
- Eecho “Hello” $amp;gtA
59What is the correct way to save the current directory to a variable?
- Apwd | $A
- Bpwd $A
- CA=pwd
- DA= ‘pwd’
- EA= cwd
60What is the default user for the su command?
- AAll users
- BThe most recently created user
- CThe root user
- DAny member of the password group
61What is the meaning of _$(($l+1))_? (Инопланетный вопрос)
- A1 will be added to the I variable
- BThis runs the command stored in variable i
- CThis will return the value of the first argument to the script
- DIf I if 0. The loop will stop
- EThis will return the value of the next argument
62One of the jobs of the kernel is to:
- A• Manage the system’s resources
- B• Turn source code into machine code
- C• Load the operating system after the computer is turned on
- D• Transfer mail from one machine to another
63Unix is:. (choose two)
- A• An operating system
- B• A type of hardware
- C• A trademark
- D• A distribution of Linux
- E• A text editor
64Linux is written in:
- AC++
- BC
- C.NET
- DPerl
- EJava
65Source code refers to:
- A• The version of a program that the computer runs on the CPU
- B• The license that dictates how you may use and share the software
- C• The interface that software uses to talk to the kernel
- D• A human-readable version of computer software
66What is the standard option to provide a command line program to view its documentation?
- A-info
- B-doc
- C-help
- D-h
67The command man -k is the same as the command apropos.. True or False?
- ARichtig
- BFalsch
68The whatis command is the same as man -w.
- ARichtig
- BFalsch
69The directory where additional documentation for software packages most likely can be found is:
- A• /var/lib/doc
- B• /var/share/doc
- C• /usr/software/doc
- D• /usr/share/doc
70Hidden files are files that begin with what character?
- A• A plus (+)
- B• A dash (-)
- C• A period (.)
- D• An asterisk (*)
71What option for the ls command will display all files, including hidden files?
- A-w
- B-H
- C-L
- D-a
72The top-level directory on a Linux system is represented as:
- A/
- B/root
- C/home
- DC:
73Is the following path absolute or relative?. /etc/ppp
- AAbsolute
- BRelative
74Is the following path absolute or relative?. sysadmin/Documents
- ARelative
- BAbsolute
75Compression on a file works by:
- A• Removing the high order bit from each byte
- B• Consolidating multiple files into one
- C• Removing redundant information
- D• Storing most of the data on removable media and just leaving a pointer
- E• Eliminating gaps within the file
76In general, for which of the following would you want to use lossless compression?
- A• An mp3 audio file
- BA movie
- C• A log file
- D• A JPEG image
- E• An encrypted email
77Lossy compression:. (choose three)
- A• Is often used with documents
- B• Decompresses to an identical version as the original
- C• Sacrifices some quality
- D• Usually results better compression than lossless
- E• Is often used with images
78You type gzip myfile.tar. What happens?. (choose two)
- A• myfile.tar.gz holds a compressed version of myfile.tar
- B• An error; you forgot to pass the name of the output file
- C• An error; you forgot to specify the file with –f
- D• myfile.tar is unarchived into the current directory
- E• myfile.tar is removed
79Error messages generated by commands are sent where by default?
- A• STDIN
- BLog files
- C• STDERR
- D• STDOUT
80A successful command will print output to STDOUT.. True or False?
- ARichtig
- BFalsch
81Which of the following commands will direct error messages to the file, error.log?. (choose one)
- A• ls /root > error.log
- B• ls /root >> error.log
- C• ls /root 2> error.log
- D• ls /root $> error.log
82The echo command:
- A• Tests a variable for duplication
- B• Duplicates the input stream to the output stream
- C• Is used for variable assignment
- D• Is used to output text to the console
- E• Copies variables from one to another
83Which are appropriate editors for writing shell scripts?. (choose two)
- Anano
- Bvi
- C• LibreOffice Writer
- D• /bin/bash
- EFirefox
8464 bit platforms can access more memory than 32 bit platforms.. True or False?
- ARichtig
- BFalsch
85What does the acronym RPM mean?
- A• Relocate Package Manager
- B• Return Package Management
- C• RPM Package Management
- D• Recursive Package Manager
86One way to install new software on a Linux system is to use a package management system.. True or False?
- ARichtig
- BFalsch
87When you execute the dmesg command, the system displays messages that are generated by the kernel.. True or False?
- ARichtig
- BFalsch
88Which of the following are package management commands for distributions with software distributed in files ending in .deb?. (choose three)
- Arpm
- Bdpkg
- Capt-get
- Daptitude
89Which of the following are package management commands for distributions with software distributed in files ending in .rpm?. (choose three)
- Ayum
- Brpm
- Capt-get
- Dyumex
90Which of the following would be considered a host?
- A• A printer attached to the network via an IP address
- B• A CDROM
- C• The computer’s hard drive
- D• A network cable
91A network packet contains …. (choose two)
- A• …the IP address of the destination machine.
- B• …a hard drive partition.
- C• …the name of the router.
- D• …the IP address of the source machine.
92Only servers have hostnames.. True or False?
- ARichtig
- BFalsch
93Which files contain user account information?. (choose two)
- A• /etc/passwd
- B/etc/shadow
- C• /etc/group
94Which user can view the /etc/shadow file?
- A• The root user
- B• No users
- C• Any member of the password group
- D• All users
95Which command will display the UID, GID and groups your current user belongs to?
- Aid
- Bwhoami
- Cwho
- Dabout
96Each user belongs to at least one group.. True or False?
- ARichtig
- BFalsch
97Which command will display the users that are currently logged in to the system?
- Awho
- Babout
- Cwhoami
- Did
98UIDs 1-500 are usually reserved for what kind of users?
- A• Are not used for user accounts, but for group accounts
- B• System accounts, such as server processes
- C• Remote log-in accounts
- D• Log-in (human) users
99Which of the following options for the useradd command allows root to specify the UID to be associated with the account?
- A-g
- B-G
- C-u
- D-U
100Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of?
- A-u
- B-g
- C-U
- D-G
101On a system that does not use UPG, the useradd command will also create a user group. For example, user bob, group bob.. True or False?
- ARichtig
- BFalsch
102Only one set (user, group, other) of permission can be changed at once using the symbolic method.. True or False?
- ARichtig
- BFalsch
103Which of the following are methods for setting permissions using the chmod command?. (choose two)
- A• letter
- B• octal
- C• binary
- D• symbolic
104The chown command can be used to change the owner and group of a file.. True or False?
- ARichtig
- BFalsch
105Which of the following are examples of desktop software?. (choose two)
- A• Web server
- B• Web browser
- C• File share
- D• Compiler
- E• Music player
106If you wanted to set up a blog, which software would be most helpful?
- A• Postfix
- B• WordPress
- C• MySQL
- DSamba
- EDovecot
107Which of the following pieces of software deal with file sharing?. (choose three)
- ANFS
- BNetatalk
- CSamba
- DX-Windows
- EPostgreSQL
108If you wanted to create and print an invoice, which software could you use?
- AGNOME
- B• Compiz
- C• Firefox
- D• LibreOffice
- E• Evolution
109Which of the following is true about graphical mode?. (choose three)
- A• You have menus and tools to help you find what you are looking for
- B• You access this mode by logging into a graphical display
- C• After login, you are provided with a command prompt
- D• After login, you are provided with a desktop
- E• You cannot use your mouse
110Which of the following is provided by a graphical interface that isn’t normally provided to a non graphical interface?. (choose four)
- ADesktop
- BShell
- CWindows
- DPopups
- EMenus
111A server is likely to be running in graphical mode.. True or False?
- ARichtig
- BFalsch
112In graphical mode, you can get to a shell by running which applications?. (choose two)
- A• guiterm
- B• gbash
- C• terminal
- D• xconsole
- E• xterm
113Which of the following are traits of a multiuser operating system?. (choose three)
- A• An administrative user gets a dedicated CPU
- B• Users can protect their information from other users
- C• Resources are shared between users
- D• Many users can log in simultaneously with a unique account
- E• Each user can only log in once per day
114Which environment variable contains a list of directories that is searched for commands to execute?
- APATH
- BEXEC
- CPS1
- DPS2
115Select all the applications that provide access to the Command Line Interface (CLI)?. (choose two)
- A• Virtual Terminal
- B• Terminal window
- Cfirefox
- Dopera
Informationen
- Beschreibung
- Quiz am Ohne Titel, erstellt von Tamerlan Sandykbaev am 28/12/2019.
- Autor
- Tamerlan Sandykbaev
- Sprache
- English
- Aufrufe
- 10
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz
Mehr zu Linux File Management and Permissions