Quiz
LPIC 101-500
Dieses Quiz hat ein Zeitlimit und öffnet sich deshalb im gewohnten Player.
Fragen in diesem Quiz (60)
11.- What signal does kill -9 send?
- ASIGKILL
- BSIGTERM
- CSIGSTOP
- DSIGHUP
22.- Which signal allows graceful shutdown?
- ASIGTERM (15)
- BSIGKILL (9)
- CSIGSTOP (19)
- DSIGUSR1 (10)
33.- How do you list jobs running in the background?
- Ajobs
- Bps bg
- Cbg -l
- Dtop -b
44.- Which command resumes a stopped job in background?
- Abg %1
- Bfg %1
- Cjobs -r
- Dresume %1
55.- Which command brings a background job to the foreground?
- Afg %1
- BBg %1
- Ctop %1
- Dbring %1
66.- What does the & operator do?
- ARuns a command in the background
- BPipes output
- CRedirects input
- DRepeats a command
77.- Which command continues a suspended process?
- Afg or bg
- Bkill -CONT
- Cresume
- DBoth A and B
88.- Which command changes process priority?
- Anice
- Bps
- Crenice
- Dtop
99.- How do you modify the priority of a running process?
- Arenice
- Bnice
- Ckill -HUP
- Dbg
1010.- What range of “nice” values is valid?
- A-20 (highest priority) to 19 (lowest)
- B0–10
- C-10–10
- D1–100
1111.- Which command runs a process immune to hangups?
- Anohup command &
- Bdisown command
- Crun command
- Dkeep command
1212.- How do you show process hierarchy?
- Apstree
- Bps -tree
- Cprocshow
- Dpidtree
1313.- Which command shows memory and CPU usage summary?
- Atop
- Bfree
- Cuptime
- Dvmstat
1414.- What command shows system memory usage?
- Afree -h
- Bdf -h
- Ctop -m
- Dps mem
1515.- What does df -h display?
- ADisk space usage per filesystem
- BMemory usage
- CRunning processes
- DFile sizes
1616.- What does top command’s load average mean?
- AAverage number of runnable processes
- BMemory load percentage
- CDisk usage
- DCPU temperature
1717.- Which command pauses a process?
- Akill -STOP PID
- Bstop PID
- Cbg -s PID
- Dfg -p PID
1818.- Which command resumes a stopped process?
- Akill -CONT PID
- Bkill -RESUME PID
- Cps -r PID
- Dstart PID
1919.- Which command terminates all processes of a user?
- Akillall -u username
- Bkill -u username
- Cpkill username
- Dkill -all username
2020.- What command finds the PID of a process by name?
- Apidof processname
- Bps name
- Cpgrep processname
- DBoth A and C
2121.- Which command opens a file for editing in vi?
- Avi filename
- Bedit filename
- Cnano filename
- Dopen filename
2222.- How do you enter insert mode in vi?
- APress i
- BPress a
- CPress Esc
- DType :i
2323.- Which key saves and quits vi?
- A:wq
- B:xq
- C:exit
- D:q!
2424.- How do you quit vi without saving?
- A:q!
- B:q
- C:exit
- DCtrrl+C
2525.- Which command searches for text in vi?
- A/pattern
- B?pattern
- C:search pattern
- DBoth A and B
2626.- What does nano file.txt do?
- AOpens file in Nano text editor
- BCompresses the file
- CViews the file in read-only mode
- DDeletes the file
2727.- In nano, which key saves the current file?
- ACtrl+O
- BCtrl+S
- CCtrl+W
- DCtrl+Q
2828.- Which key combination exits nano?
- ACtrl+X
- BCtrl+Q
- CCtrl+C
- DCtrl+E
2929.- Which shell command displays the value of a variable?
- Aecho $VAR
- Bcat $VAR
- Cprint $VAR
- Dshow VAR
3030.- Which command makes a variable available to subprocesses?
- Aexport VAR
- Bset VAR
- Cdeclare VAR
- Decho VAR
3131.- What command lists all environment variables?
- Aenv
- Becho $PATH
- Csetenv
- Dprintenv
3232.- What does $PATH contain?
- ADirectories searched for executables
- BCurrent working directory
- CUser login path
- DHome directory location
3333.- How do you add /usr/local/bin to PATH temporarily?
- Aexport PATH=$PATH:/usr/local/bin
- BPATH=/usr/local/bin
- Caddpath /usr/local/bin
- Dset PATH /usr/local/bin
3434.- Which command prints the current working directory?
- Apwd
- Bls
- Ccd
- Ddir
3535.- What does cd - do?
- ASwitches to the previous directory
- BMoves up one directory
- CGoes to home directory
- DClears screen
3636.- Which command lists all shell builtins?
- Ahelp
- Bman bash
- Cbuiltin
- DBoth A and C
3737.- What does alias ll='ls -l' do?
- ACreates a shortcut command ll
- BChanges default ls behavior
- CLists long files automatically
- DDeletes the alias ll
3838.- How do you remove an alias?
- Aunalias ll
- Brm alias ll
- Calias -d ll
- Dreset ll
3939.- Which command shows your shell history?
- Ahistory
- Bcat ~/.bash_history
- Cecho $HISTFILE
- DBoth A and B
4040.- What does !! do in bash?
- ARepeats the last command
- BLists history
- CCancels last command
- DClears screen
4141.- Which command clears the screen?
- Aclear
- Breset
- CCtrl+L
- DAll of the above
4242.- What command prints the current shell name?
- Aecho $SHELL
- Bwhoami
- Cps
- Denv shell
4343.- What command displays the type of a command (builtin, alias, etc.)?
- Atype ls
- Bwhich ls
- Cfile ls
- Dinfo ls
4444.- What does which ls show?
- AThe full path to the executable
- BThe file type
- CThe version
- DThe alias name
4545.- Which file contains user-specific bash configuration?
- A~/.bashrc
- B/etc/bash.bashrc
- C~/.bash_profile
- DBoth A and C
4646.- What is the purpose of /etc/profile?
- ASets system-wide shell environment
- BUser shell history file
- CDefault user aliases
- DBackup configuration
4747.- What symbol begins a comment in shell scripts?
- A#
- B//
- C;
- D- -
4848.- Which line defines the interpreter in a shell script?
- A#!/bin/bash
- B#bash
- C@bash
- D//bash
4949.- How do you make a script executable?
- Achmod +x script.sh
- Bbash script.sh
- Crun script.sh
- Dexec script.sh
5050.- How do you run a script in the current shell?
- A. script.sh or source script.sh
- Bbash script.sh
- Crun script.sh
- Dexec script.sh
5151.- What does $0 represent in a script?
- AThe script name
- BFirst argument
- CNumber of arguments
- DExit code
5252.- What does $1 refer to in a script?
- AThe first argument
- BScript name
- CExit code
- DVariable value
5353.- What does $# return in a shell script?
- ANumber of arguments
- BExit code
- CScript PID
- DUsername
5454.- What does $? hold after a command executes?
- AExit status code
- BProcess ID
- CCommand name
- DReturn value
5555.- Which construct tests a condition in a script?
- Aif [ condition ]; then ... fi
- Bcheck condition
- Ctest-if
- Dcond {}
5656.- How do you test file existence in a script?
- A[ -f filename ]
- B[ -e filename ]
- C[ -d filename ]
- DAll of the above
5757.- What is the correct syntax for a while loop?
- Awhile condition; do ... done
- Bloop while { ... }
- Crepeat condition
- Ddo while {}
5858.- What does for i in *; do echo $i; done do?
- APrints all filenames in current directory
- BCreates files
- CDeletes files
- DCounts files
5959.- How do you exit a script with a custom status?
- Aexit 1
- Breturn 1
- Cquit 1
- Dstop 1
6060.- What command prints text to stdout in bash?
- Aecho
- Bprint
- Cprintf
- DBoth A and C
Informationen
- Beschreibung
- LPIC 101-500
- Autor
- David OkOk
- Sprache
- Español
- Aufrufe
- 0
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz