NEW
Font size
WorksheetsLinux Commands and Cybersecurity Assessment #1
Total questions: 50
Worksheet time: 24mins
What is the command to display your current directory location in the terminal?
cd
ls
pwd
dir
Which command is used to create a new directory in Linux?
makedir
mkdir
newdir
create
What does the "ls -l" command do?
Lists all hidden files
Lists files with detailed information including permissions
Lists only executable files
Lists files sorted by size
Which command creates an empty file?
new
create
touch
make
What command would you use to display the contents of a text file in the terminal?
show
view
read
cat
How do you copy a file named "note.txt" to a new file called "backup.txt"?
cp note.txt backup.txt
copy note.txt backup.txt
mv note.txt backup.txt
duplicate note.txt backup.txt
Which command opens a text file in a simple terminal-based editor?
edit
nano
view
open
What command is used to delete a file?
delete
remove
rm
erase
Which option with the "rm" command forces removal without confirmation?
-f
-r
-d
-c
What does "rm -rf *" do?
Removes only executable files
Removes all files in the current directory without confirmation
Removes only hidden files
Renames all files to have an asterisk
Which command moves a file from one location to another?
mv
move
cp
transfer
What command downloads a file from a URL?
download
get
wget
fetch
Which command downloads and displays the content of a URL?
curl
wget
browse
open
What keyboard shortcut terminates a running command?
Ctrl+Z
Ctrl+X
Ctrl+C
Ctrl+T
What does "chmod +x filename" do?
Makes the file read-only
Makes the file executable
Makes the file hidden
Makes the file writable
How do you run an executable file in the current directory?
run filename
exec filename
./filename
start filename
Which flag can be added to most commands to see the help documentation?
-h or --help
-d or --doc
-m or --manual
-i or --info
What command initiates an SSH connection to a remote server?
connect
remote
ssh
telnet
Which command displays an HTML file in the terminal?
show
cat
display
html
Which command opens a file in a text editor?
edit
nano
text
open
What command is used to search for specific text within a file?
find
search
grep
lookup
Which command exits the binary visual editor (bvi)?
exit
quit
:q
escape
What command displays the manual for Python?
help python
man python
python --help
python -m
How would you decrypt a Python file using ende.py?
python3 ende.py --decrypt
python3 ende.py -d
python3 ende.py decrypt
python3 ende.py /d
What symbol represents your home directory in Linux paths?
@
#
~
$
What keyboard shortcut stops a current process and returns to the terminal?
Ctrl+C
Ctrl+Z
Ctrl+X
Ctrl+D
How would you list files with indicators showing their type (e.g., directories with /, executables with *)?
ls -t
ls -i
ls -F
ls -m
Which command would you use to output text to the terminal?
output
echo
display
What does "chmod -x filename" do?
Makes the file hidden
Makes the file read-only
Removes execute permission from the file
Makes the file writeable
In picoCTF, what format are flags typically presented in?
picoCTF{flag_text_here}
flag{text_here}
CTF{capture_the_flag}
{flag:captured}
Which command would you use to view the help information for the ende.py script?
python3 ende.py help
python3 ende.py -h
help ende.py
man ende.py
What does the "~" symbol represent when shown in a terminal prompt?
Root directory
Current directory
Home directory
Parent directory
How would you recursively remove a directory and all its contents?
rm -all directory
rm -r directory
delete -r directory
rmdir -f directory
What command would you use to change to the parent directory?
cd ..
cd -
cd up
cd parent
Which command would display only the first few lines of a file?
start
head
top
begin
What command would you use to display the last few lines of a file?
end
bottom
tail
last
Which command counts the number of lines, words, and characters in a file?
count
wc
stats
size
What does the command cd - do?
Changes to the home directory
Changes to the root directory
Changes to the previous directory
Moves up one directory level
How would you list all files, including hidden ones, in a directory?
ls -a
ls -h
ls -all
ls --hidden
In picoCTF, what might you need to do to a binary file before running it?
Compile it
Rename it
Make it executable with chmod +x
Convert it to text
Change a password for a user
pwd
password
passwd
chpass
Show all running processes (like Task Manager)
proc
show
top
process
To log out of the shell program, use...
logout
exit
df
close
The command used to locate a file in a directory:
get
apt-get
find
grep
Display information about your IP address (NOT configure it).
ip
ifconfig
iwconfig
chmod
Get rid of a mess of useless information on the terminal screen
cls
clear
wipe
blank
Show available disk space and file system information.
df
ds
disk
showdisk
What is the correct way to copy file1.txt to file2.txt?
mv file1.txt file2.txt
cp file1.txt
cp file1.txt file2.txt
touch file1.txt file2.txt
What command do you use if the terminal is acting strangely?
clear
reset
restart
shutdown
How do you move or rename oldname.txt to newname.txt?
cp oldname.txt newname.txt
mv oldname.txt newname.txt
rename oldname.txt newname.txt
touch newname.txt
