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

Linux process management
Linux process managementLinux process management
Linux process managementRaghu nath
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformaticsBonnie Ng
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic CommandsHanan Nmr
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux Harish R
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linuxPapu Kumar
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in LinuxKnoldus Inc.
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt onu9
 
Linux command ppt
Linux command pptLinux command ppt
Linux command pptkalyanineve
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in LinuxSAMUEL OJO
 
File permission in linux
File permission in linuxFile permission in linux
File permission in linuxPrakash Poudel
 
Yocto Project Open Source Build System and Collaboration Initiative
Yocto Project Open Source Build System and Collaboration InitiativeYocto Project Open Source Build System and Collaboration Initiative
Yocto Project Open Source Build System and Collaboration InitiativeMarcelo Sanz
 
Linux Administration
Linux AdministrationLinux Administration
Linux AdministrationHarish1983
 
Terminal Commands (Linux - ubuntu) (part-1)
Terminal Commands  (Linux - ubuntu) (part-1)Terminal Commands  (Linux - ubuntu) (part-1)
Terminal Commands (Linux - ubuntu) (part-1)raj upadhyay
 
Yocto project and open embedded training
Yocto project and open embedded trainingYocto project and open embedded training
Yocto project and open embedded trainingH Ming
 

What's hot (20)

A History of Linux
A History of LinuxA History of Linux
A History of Linux
 
Linux process management
Linux process managementLinux process management
Linux process management
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Linux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating SystemLinux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating System
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linux
 
Linux crontab
Linux crontabLinux crontab
Linux crontab
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
 
File permission in linux
File permission in linuxFile permission in linux
File permission in linux
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
UNIX Operating System ppt
 
Yocto Project Open Source Build System and Collaboration Initiative
Yocto Project Open Source Build System and Collaboration InitiativeYocto Project Open Source Build System and Collaboration Initiative
Yocto Project Open Source Build System and Collaboration Initiative
 
Linux introduction, class 1
Linux introduction, class 1Linux introduction, class 1
Linux introduction, class 1
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
 
Terminal Commands (Linux - ubuntu) (part-1)
Terminal Commands  (Linux - ubuntu) (part-1)Terminal Commands  (Linux - ubuntu) (part-1)
Terminal Commands (Linux - ubuntu) (part-1)
 
Yocto project and open embedded training
Yocto project and open embedded trainingYocto project and open embedded training
Yocto project and open embedded training
 

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 newlizabonilla
 
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 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 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
 
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