GoConqr has a new look! Let us know what you think.

Quiz

LPIC 101-500 = test 8

David OkOk 60 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (60)

  1. 11.- Which symbol is used for command substitution?
    1. A`command` or $(command)
    2. B${command}
    3. C%command
    4. D#command
  2. 22.- What does read var do?
    1. ATakes user input into variable var
    2. BDisplays a variable
    3. CDeletes a variable
    4. DReads from a file
  3. 33.- What is #!/bin/sh used for?
    1. ASpecifies script interpreter as Bourne shell
    2. BComments out line
    3. CImports shell library
    4. DDisplays system shell
  4. 44.- What does basename /home/user/file.txt return?
    1. Afile.txt
    2. B/home/user
    3. C/
    4. Duser
  5. 55.- What does dirname /home/user/file.txt return?
    1. A/home/user
    2. Bfile.txt
    3. Cuser
    4. D/
  6. 66.- Which variable stores the user’s home directory?
    1. A$HOME
    2. B$PATH
    3. C$PWD
    4. D$USER
  7. 77.- Which variable contains the username?
    1. A$USER
    2. B$LOGNAME
    3. C$USERNAME
    4. DAll of the above
  8. 88.- What does set without arguments do?
    1. ALists all shell variables and functions
    2. BUnsets all variables
    3. CShows aliases only
    4. DDisplays PATH
  9. 99.- How do you disable command history temporarily?
    1. Aset +o history
    2. Bunset HISTFILE
    3. Chistory -d
    4. DBoth A and B
  10. 1010.- What does history -c do?
    1. AClears the command history
    2. BCopies the history
    3. CDisplays the history count
    4. DCompresses the history file

Information

Description
LPIC 101-500
Language
Español
Views
0
Tags
lpic 101-500administrador de sistemas
Rating
No ratings yet
Rate this quiz
Rate this quiz

More on Command Line Basics and Linux Commands

Feedback

What is it about?

What do you think of the new look?

How do you like it?