This quiz tests knowledge of 10 basic Linux commands: 1) date displays the current date and time. 2) cal displays the calendar for a given year or month and year. 3) echo prints text to the screen. 4) who displays currently connected users. 5) clear clears the screen. 6) man provides help about commands. 7) ls lists directory contents. 8) pwd prints the current working directory path. 9) cd changes the current working directory. 10) cat creates a new file.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
42 views2 pages
Quiz No. 1: 1) Write 10 LINUX Commands
This quiz tests knowledge of 10 basic Linux commands: 1) date displays the current date and time. 2) cal displays the calendar for a given year or month and year. 3) echo prints text to the screen. 4) who displays currently connected users. 5) clear clears the screen. 6) man provides help about commands. 7) ls lists directory contents. 8) pwd prints the current working directory path. 9) cd changes the current working directory. 10) cat creates a new file.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Quiz No.
Course: OS LAB. Class: BS Computer Science
Time: 10 Mints
1) Write 10 LINUX Commands:
N0. Command Syntax Description 1 Date Command $date This command is used to display the current data and time 2 Calendar a.$cal <year> Here the first syntax gives the entire calendar Command b.$cal <month> <year> for given year & the second Syntax gives the calendar of reserved month of that year 3 Echo Command $echo <text> This command is used to print the arguments on the screen 4 ’who’ Command $who – option‟ It is used to display who are the users connected to our computer currently 5 ’CLEAR’ $clear It is used to clear the screen Command 6 ’MAN’ Command $man <command name> It help us to know about the particular command and its options & working. It is like „help‟ command in windows 7 LIST $ ls It is used to list all the contents in the current working directory 8 Present Working To print the complete path of the current Directory $pwd working directory Command 9 CD cd <directory name> To change or move the directory to the Command mentioned directory 10 CREATE A FILE $cat > <filename. To create a new file in the current directory we The > symbol is use CAT command redirectory we use cat command.
Bahria University Islamabad Department of Computer Science Mid Term Exam, Operating System Lab (CSL320), Spring 2019 (BSIT-5A) Instructor: Syed Saqlain Hassan