Unix/Linux Command Line Basics
Test your knowledge of fundamental Unix/Linux command line operations, including file management, text processing, and common shortcuts.
Questions
In which year the Wikipedia project started?
- 1995
- 1999
- 2001
- 2005
Which is the former name of the AMD Graphics Product Group?
- AMD Effects Group
- AMD Fusion Corp.
- ATI Technologies Inc.
- Nvidia Inc.
How do you get help about the command "cp"?
- help cp
- man cp
- cp?
- help
How do you list all the files that are in the current directory?
- list all
- ls -full
- ls -a
- ls a
How do you rename file "new" in file "old"?
- mv new old
- cp new old
- rn new old
- rename new old
How do you visualize the content of file "not_empty"?
- type not_empty
- cat not_empty
- more not_empty
- vi not_empty
How do you create a new directory called "sample"?
- newdir sample
- mkdir sample
- crdir sample
- makedir sample
What is the command to search all files in your current directory for the word "plasmodium"?
- grep plasmodium *
- find plasmodium -all
- lookup plasmodium *
- search plasmodium
How do you print the first 15 lines of all files ending by ".txt"?
- print 15 .txt
- cat *.txt -length=15
- head -15 *.txt
- type 15 .txt
how to make a copy of file "upper" in the directory two levels up?
- jump -2 upper
- cp upper ../..
- cp upper -2/
- copy upper -2/
Count the files you own in all your directories.
- ls -lR | grep myusername | wc -l
- ls -a | cnt *
- ls -n ~myusername
- ls -a
Change the current directory to /usr/local/bin
- mv /usr/local/bin
- cd /usr/local/bin
- setdir /usr/localbin
- cd bin
What is the command used to Erases the complete line
- CTRL+Y
- CTRL+U
- CTRL+C
- CTRL+F
what is the command used to Logs out of the current session
- CTRL+D
- CTRL+F
- CTRL+C
- CTRL+B
what is the command used to Erase one character. Similar to pressing backspace
- CTRL+S
- CTRL+Q
- CTRL+H
- CTRL+W