Font size
WorksheetsCSE493_QUIZ 1
Total questions: 20
Worksheet time: 30mins
The part of the command line that adjusts the behavior of a command
option
command
argument
terminal
Display the current time in the following format : HH : MM : SS AM/P M
date +%r
date+%h%m%s
date
date /h/m/r
Regular user commands and utilities are located at:
/etc
/usr/home
/root
/usr/bin
Which command is used to print the current working directory?
pwd
echo $PWD
only - pwd
both pwd and echo $PWD
Which command is used to copy entire directory?
cp -r [directory_to_be_copied] [new_directory]
cp -i [directory_to_be_copied] [new_directory]
cp -p [directory_to_be_copied] [new_directory]
none of these
Suppose you are in your home directory, /home/raf as in diagram above. What is the relative path for the file called "save" in the Email subdirectory?
/raf/email/save
/email/save
/home/raf/email/save
email/save
How to append string 'INDIA' to file country.txt
(a)
Given a file, count the number of lines containing the word "ABC" in file 'alphabets.txt'
(a)
How to assign the user defined timestamp that is "23 Jan 11:00" for newly created file "f1.txt"?
(a)
How to display the date and time of "Coming Sunday"?
(a)
How to create three folders with one command?
mkdir d1 d2 d3
mkdir d{1,2,3}
mkdir d{1..3}
All of the above
rm -d can delete only non-empty directories.
TRUE
FALSE
Which statement describe the benefits of Linux?
Linux is developed entirely by volunteers, which makes it a low-cost operating system.
Linux is locked in a known state for a minimum of one year for each release, so it is easier to develop custom software.
Linux includes a powerful and scriptable command-line interface, which enables easier automation and provisioning.
Linux provides sensitive portions of code are protected and available only to the original developer.
Which term describes the visual cue that indicates that an interactive shell is waiting for the user to type a command?
Argument
Command
Option
Prompt
Which command is used to count number of lines of file "/etc/passwd" ?
(a)
Which Bash shortcut or command re-executes a specific command in the history list?
Pressing Tab
!number
history
Pressing Esc+.
Display the current time in 24-hour clock time (for example, 13:57).
(a)
Which command creates an empty file called helloworld.py in the user home directory, assuming that your current directory is /home?
Which pattern matches only file names with at least three characters?
\3*
???*
???
...*
Create the my_bestseller directory under the Documents directory. Create the chapters directory under the my_bestseller directory.
(a)
