Font size
WorksheetsChapter 3
Total questions: 15
Worksheet time: 15mins
What is a path which begins with a forward slash ( / ) called
(a)
The (a) command will display the current directory you are in.
Which path begins in the current working directory?
Relative
Absolute
pwd
cd
Which command will change your current directory to another directory?
cd
pwd
ls
file
When using the ls -F command, the (a) character represents a directory.
Match the following
.bin
Binary File
.png
Source code file
.c
Text file
.txt
Image file
.sh
Shell Script
Which command will provide a long listing of files and directories?
(a)
Which command will display the type of any file?
file
ls
pwd
directory
What does the following command do?
ls -AF
Classifies almost all files and directories in the directory.
Lists only files in current directory.
Lists all files and directories, including special files, and classifies them.
List almost all files but does not sort them.
The (a) command will display the contents of files and the (b) command will display the contents of files in reverse order.
Which command will display the first 10 lines of a file?
head
tail
cat
tac
Which command will list the last 10 lines of a file?
tail
cat
tac
head
Which command will display one page at a time until you reach the end of the file, then drop you to a terminal?
(a)
Which command will display the contents of a file one page at a time and allow you to go back up once you reach the end of the file?
(a)
A (a) contains characters such as an *, ? and [ ].
