SlideShare a Scribd company logo
1 of 9
Download to read offline
Date:-___________ Due Date :-__________
LINUX LAB Page 1
Spoken Tutorials - Linux Assignment
Department of Information Technology
PRACTICAL 1 - Basic Commands in Linux
Q 1) Commands are actually files containing programs, often written in C. How will you find out in
which directory does the file corresponding to the man command resides?
Q 2) How will you find out what is the use of the ps command ?
Date:-___________ Due Date :-__________
LINUX LAB Page 2
Spoken Tutorials - Linux Assignment
Department of Information Technology
PRACTICAL 2 - General Purpose Utilities in Linux
Q 1)Display the calender for the month of March 2012 ?
Q 2)List all the files and directories of the directory /usr/lib on the terminal. Now put the same
information in a file named results. Display the contents of the file results now.
Date:-___________ Due Date :-__________
LINUX LAB Page 3
Spoken Tutorials - Linux Assignment
Department of Information Technology
PRACTICAL 3 - File Attributes
Q 1. Create a file abc.txt and change the ownership of this file to some other user on you machine,
and also change the group to any name.
Q 2. Create a file exercise.txt and make it executable.
Date:-___________ Due Date :-__________
LINUX LAB Page 4
Q 3. Create a file test.txt on your desktop and identify its inode number, also create a softlink
for test.txt in your home.
cat
Date:-___________ Due Date :-__________
LINUX LAB Page 5
Spoken Tutorials - Linux Assignment
Department of Information Technology
PRACTICAL 4 - Redirection Of Pipes
Q 1. Create a file name error_log in your current directory. Suppose you do not have any file named
aa11 in your current directory.
a)How can you redirect the error message to the file error_log when we apply the command "wc -l
aa11" ?
b)How can you ensure that all the error log are appended to the error_log file?
Date:-___________ Due Date :-__________
LINUX LAB Page 6
Spoken Tutorials - Linux Assignment
Department of Information Technology
PRACTICAL 5 - Linux Process
Q 1. Open a terminal. Now spawn three shell processes one after another i.e. first spawn one shell,
then from the spawned shell, spawn one new shell and so on. Now, how can you see the PID of the
current shell ? How can you see the PID of the shell which is the grandparent of the current shell?
Q 2. How can you see all the processes (both system & user processes) in your computer?
The output can be quite large. How can you view the output as multipage output ?
How can you store the -output in a file named process_info?
Date:-___________ Due Date :-__________
LINUX LAB Page 7
Spoken Tutorials - Linux Assignment
Department of Information Technology
PRACTICAL 6 - Linux Environment
Q 1. How can you know what is the secondary command prompt set your system ?
How can you change the secondary command prompt from the default to your username ?
Q 2. How can you ensure that the mv command (used for renaming a file) always asks for permission
before overwriting an existing destination file ?
Date:-___________ Due Date :-__________
LINUX LAB Page 8
Spoken Tutorials - Linux Assignment
Department of Information Technology
PRACTICAL 1 - Basic of system administration
1.Create A New User And Home Directory Called ‘Duck’
2.Set The User Account Duck Expiry Date As 7-1-2015
3.Find The Id Of User Account Duck
4.Type Du And Df Command And See The Output On The Terminal
Date:-___________ Due Date :-__________
LINUX LAB Page 9
5. Type This Command On The Terminal And See The Output
du –ch *.txt
6.Delete The User Account Duck Permanently Along With The Home Folder

More Related Content

What's hot

Part 01 Linux Kernel Compilation (Ubuntu)
Part 01 Linux Kernel Compilation (Ubuntu)Part 01 Linux Kernel Compilation (Ubuntu)
Part 01 Linux Kernel Compilation (Ubuntu)Tushar B Kute
 
Linux command ppt
Linux command pptLinux command ppt
Linux command pptkalyanineve
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 
Linux Administration
Linux AdministrationLinux Administration
Linux AdministrationHarish1983
 
Linux System Monitoring basic commands
Linux System Monitoring basic commandsLinux System Monitoring basic commands
Linux System Monitoring basic commandsMohammad Rafiee
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linuxanandvaidya
 
Basic command ppt
Basic command pptBasic command ppt
Basic command pptRohit Kumar
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt onu9
 
Linux security introduction
Linux security introduction Linux security introduction
Linux security introduction Mohamed Gad
 
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...Edureka!
 

What's hot (20)

Part 01 Linux Kernel Compilation (Ubuntu)
Part 01 Linux Kernel Compilation (Ubuntu)Part 01 Linux Kernel Compilation (Ubuntu)
Part 01 Linux Kernel Compilation (Ubuntu)
 
A History of Linux
A History of LinuxA History of Linux
A History of Linux
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
tmux
tmuxtmux
tmux
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Linux distributions
Linux    distributionsLinux    distributions
Linux distributions
 
Linux System Monitoring basic commands
Linux System Monitoring basic commandsLinux System Monitoring basic commands
Linux System Monitoring basic commands
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Linux seminar
Linux seminarLinux seminar
Linux seminar
 
Linux security introduction
Linux security introduction Linux security introduction
Linux security introduction
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands...
 
systemd
systemdsystemd
systemd
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 

Similar to basic linux command (questions)

POS 433 Education Organization / snaptutorial.com
POS 433 Education Organization / snaptutorial.com POS 433 Education Organization / snaptutorial.com
POS 433 Education Organization / snaptutorial.com McdonaldRyan65
 
Linux admin interview questions
Linux admin interview questionsLinux admin interview questions
Linux admin interview questionsKavya Sri
 
Netw 230 Success Begins / snaptutorial.com
Netw 230  Success Begins / snaptutorial.comNetw 230  Success Begins / snaptutorial.com
Netw 230 Success Begins / snaptutorial.comWilliamsTaylor65
 
Assessment item 1 File Systems and Advanced Scripting .docx
Assessment item 1 File Systems and Advanced Scripting .docxAssessment item 1 File Systems and Advanced Scripting .docx
Assessment item 1 File Systems and Advanced Scripting .docxdavezstarr61655
 
CEIS106_Final_Project.pptx.pdf
CEIS106_Final_Project.pptx.pdfCEIS106_Final_Project.pptx.pdf
CEIS106_Final_Project.pptx.pdfluxasuhi
 
Linux Operating System Resembles Unix Operating. System
Linux Operating System Resembles Unix Operating. SystemLinux Operating System Resembles Unix Operating. System
Linux Operating System Resembles Unix Operating. SystemOlga Bautista
 
Lpi lição 01 exam 101 objectives
Lpi lição 01  exam 101 objectivesLpi lição 01  exam 101 objectives
Lpi lição 01 exam 101 objectivesAcácio Oliveira
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newKatherineJack1
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newEmmaJack2018
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newmarysherman2018
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newsweetsour2017
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newLillieDickey
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newsarahlazeto
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newlizabonilla
 
POS 433 Inspiring Innovation/tutorialrank.com
 POS 433 Inspiring Innovation/tutorialrank.com POS 433 Inspiring Innovation/tutorialrank.com
POS 433 Inspiring Innovation/tutorialrank.comjonhson152
 
Linux® Directory LogPOS420 Version 111University of Pho.docx
Linux® Directory LogPOS420 Version 111University of Pho.docxLinux® Directory LogPOS420 Version 111University of Pho.docx
Linux® Directory LogPOS420 Version 111University of Pho.docxSHIVA101531
 
Devry CIS 246 Full Course Latest
Devry CIS 246 Full Course LatestDevry CIS 246 Full Course Latest
Devry CIS 246 Full Course LatestAtifkhilji
 

Similar to basic linux command (questions) (20)

POS 433 Education Organization / snaptutorial.com
POS 433 Education Organization / snaptutorial.com POS 433 Education Organization / snaptutorial.com
POS 433 Education Organization / snaptutorial.com
 
Linux admin interview questions
Linux admin interview questionsLinux admin interview questions
Linux admin interview questions
 
Netw 230 Success Begins / snaptutorial.com
Netw 230  Success Begins / snaptutorial.comNetw 230  Success Begins / snaptutorial.com
Netw 230 Success Begins / snaptutorial.com
 
Pos 433 pos433
Pos 433 pos433Pos 433 pos433
Pos 433 pos433
 
Assessment item 1 File Systems and Advanced Scripting .docx
Assessment item 1 File Systems and Advanced Scripting .docxAssessment item 1 File Systems and Advanced Scripting .docx
Assessment item 1 File Systems and Advanced Scripting .docx
 
CEIS106_Final_Project.pptx.pdf
CEIS106_Final_Project.pptx.pdfCEIS106_Final_Project.pptx.pdf
CEIS106_Final_Project.pptx.pdf
 
Neww
NewwNeww
Neww
 
Linux Operating System Resembles Unix Operating. System
Linux Operating System Resembles Unix Operating. SystemLinux Operating System Resembles Unix Operating. System
Linux Operating System Resembles Unix Operating. System
 
Lpi lição 01 exam 101 objectives
Lpi lição 01  exam 101 objectivesLpi lição 01  exam 101 objectives
Lpi lição 01 exam 101 objectives
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer new
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer new
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer new
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer new
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer new
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer new
 
Cis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer newCis 562 week 11 final exam – strayer new
Cis 562 week 11 final exam – strayer new
 
Linux basic
Linux basicLinux basic
Linux basic
 
POS 433 Inspiring Innovation/tutorialrank.com
 POS 433 Inspiring Innovation/tutorialrank.com POS 433 Inspiring Innovation/tutorialrank.com
POS 433 Inspiring Innovation/tutorialrank.com
 
Linux® Directory LogPOS420 Version 111University of Pho.docx
Linux® Directory LogPOS420 Version 111University of Pho.docxLinux® Directory LogPOS420 Version 111University of Pho.docx
Linux® Directory LogPOS420 Version 111University of Pho.docx
 
Devry CIS 246 Full Course Latest
Devry CIS 246 Full Course LatestDevry CIS 246 Full Course Latest
Devry CIS 246 Full Course Latest
 

basic linux command (questions)

  • 1. Date:-___________ Due Date :-__________ LINUX LAB Page 1 Spoken Tutorials - Linux Assignment Department of Information Technology PRACTICAL 1 - Basic Commands in Linux Q 1) Commands are actually files containing programs, often written in C. How will you find out in which directory does the file corresponding to the man command resides? Q 2) How will you find out what is the use of the ps command ?
  • 2. Date:-___________ Due Date :-__________ LINUX LAB Page 2 Spoken Tutorials - Linux Assignment Department of Information Technology PRACTICAL 2 - General Purpose Utilities in Linux Q 1)Display the calender for the month of March 2012 ? Q 2)List all the files and directories of the directory /usr/lib on the terminal. Now put the same information in a file named results. Display the contents of the file results now.
  • 3. Date:-___________ Due Date :-__________ LINUX LAB Page 3 Spoken Tutorials - Linux Assignment Department of Information Technology PRACTICAL 3 - File Attributes Q 1. Create a file abc.txt and change the ownership of this file to some other user on you machine, and also change the group to any name. Q 2. Create a file exercise.txt and make it executable.
  • 4. Date:-___________ Due Date :-__________ LINUX LAB Page 4 Q 3. Create a file test.txt on your desktop and identify its inode number, also create a softlink for test.txt in your home. cat
  • 5. Date:-___________ Due Date :-__________ LINUX LAB Page 5 Spoken Tutorials - Linux Assignment Department of Information Technology PRACTICAL 4 - Redirection Of Pipes Q 1. Create a file name error_log in your current directory. Suppose you do not have any file named aa11 in your current directory. a)How can you redirect the error message to the file error_log when we apply the command "wc -l aa11" ? b)How can you ensure that all the error log are appended to the error_log file?
  • 6. Date:-___________ Due Date :-__________ LINUX LAB Page 6 Spoken Tutorials - Linux Assignment Department of Information Technology PRACTICAL 5 - Linux Process Q 1. Open a terminal. Now spawn three shell processes one after another i.e. first spawn one shell, then from the spawned shell, spawn one new shell and so on. Now, how can you see the PID of the current shell ? How can you see the PID of the shell which is the grandparent of the current shell? Q 2. How can you see all the processes (both system & user processes) in your computer? The output can be quite large. How can you view the output as multipage output ? How can you store the -output in a file named process_info?
  • 7. Date:-___________ Due Date :-__________ LINUX LAB Page 7 Spoken Tutorials - Linux Assignment Department of Information Technology PRACTICAL 6 - Linux Environment Q 1. How can you know what is the secondary command prompt set your system ? How can you change the secondary command prompt from the default to your username ? Q 2. How can you ensure that the mv command (used for renaming a file) always asks for permission before overwriting an existing destination file ?
  • 8. Date:-___________ Due Date :-__________ LINUX LAB Page 8 Spoken Tutorials - Linux Assignment Department of Information Technology PRACTICAL 1 - Basic of system administration 1.Create A New User And Home Directory Called ‘Duck’ 2.Set The User Account Duck Expiry Date As 7-1-2015 3.Find The Id Of User Account Duck 4.Type Du And Df Command And See The Output On The Terminal
  • 9. Date:-___________ Due Date :-__________ LINUX LAB Page 9 5. Type This Command On The Terminal And See The Output du –ch *.txt 6.Delete The User Account Duck Permanently Along With The Home Folder