SlideShare a Scribd company logo
UOP POS 433 Week 4 File Processing Commands
Worksheet NEW
http://www.assignmentcloud.com/pos-433-
uop/pos-433-week-4-file-processing-
commands-worksheet-new
For more classes visit
http://www.assignmentcloud.com
1. How do you know how many number of users
currently logged into the system? (Not considering
if any user is logged more than one time) (1)
A. who | uniq | sort | wc -l
B. who | cut -d' ' –f1 | uniq | wc -l
C. who | sort | uniq | wc -l
D. who | cut -d' ' –f1 | sort -u | wc -l
E. who | cut -d' ' –f1 | uniq -d | wc -l
Ans:
2. Create a file “employees.txt” using vi editor or
pico.
(The file will have 6 fields, ID, Name, Designation,
Dept, D.O.B, Salary separated by pipe)
Enter these lines in the file and save it.
2133|charles smith |Manager|sales|12/12/56|
90000
9576|Rob Thomson|director |production|
03/12/50|130000
5778|David Blake |General Manager|marketing |
04/19/43| 85000
2765|Rick Martin|director|personnel |05/11/47|
120000
(Use cut command for the following questions A,B)
(in each one mark, ½ is for the command and ½
for the output)
A. Display the person's name, his designation and
salary in the above file.
Show the command and output
Ans:
B: Display first 20 characters on each line in the
above file.
Show the command and output
Ans:
3. How do you display the hour and minute from
date command using cut utility (1)
Show the command and output
( ½ is for the command and ½ for the output)
Ans:
4. What is the difference between the following
commands? (1)
$ who | grep 'mary'
and
$ who | grep '^mary'
Ans:
5. We know that all user information is stored
in /etc/passwd where fields are delimited by a
colon. Display only their userids using cut
command. (userid is the first field in /etc/passwd
file) Show only top 10 userids. (1)
Show the command and output
( ½ is for the command and ½ for the output)
Ans:
6. Create the following four files chapter1,
chapter2, chapter3, chapter4 in your current
directory and enter the following text:
Chapter1 :
This is the first line in this file
This chapter deals with the basic information of a
UNIX system.
Chapter2 :
This is the first line in this file
This chapter deals with Unix System info and shell
introduction.
Chapter3 :
This is the first line in this File System
This chapter deals with various Unix Systems.
Chapter4 :
This is the first line in this file
This chapter deals with kernel system.
The question is to search for a string "System" or
"system" in the above files. Use wild cards in both
pattern and file searching. (1)
Show the command and output
( ½ is for the command and ½ for the output)
Ans:
7. Show these commands and output:
A. Redirect man pages of ‘find’ command to a file
called, find_manpages in /tmp directory.
B. Display lines not having the word “version” in
the above file.(1)
(½ is for the command and ½ for the output)
Ans:
8. Which command of the following is correct ?
(Some may work but does not make sense). (1)
a. cat file file> file3 | wc -l
b. cut -d ":" filename
c. ls -l | grepunixmyfile
d. head filename | tail
e. find name "myfile.txt" -print
9. We know that ls -l command shows all the files
in the current directory. How do you display only
the directories, not files in the current directory.
(You have to use ls command, but not find
command) (1)
Ans:
10. How do you set only read permissions to user,
group and others in octal mode for a file
"myfile.txt" ? (1)
Ans:
11. You observed that some of your group
members are fiddling with your file "myfile" and
you wanted to remove the read permission to your
group. How do you do? (1)
Ans:
12. Here is the long listing of a file.
-rw-rw-rw- 2 Y435678 odms 22 Sep 02 12:03
myfile.txt
Is the above a file or a directory? To which group
does it belong? (1)
Regular file, Y435678
file, Y435678
file, odms
directory, odms
directory, Y435678
Ans :
13. Here is another long listing of a file. (1)
-rw-r----- 1 Y435678 odms 20 Sep 02 17:03 file.txt.
What are the owner permissions?
read, execute
read, write
write, execute
all since s/he is the owner
Ans:
14. The file users_data has the following contents :
(1)
Tom Smith 7.00 15 105.00
Rob Sheryl 8.00 20 160.00
Ken Bradman 7.00 13 91.00
Peter Smith 6.00 15 90.00
Dennis Smith 8.00 13 104.00
Tom Dave 9.00 12 108.00
How do you sort the above file and redirect the
output to another file called sortedusers
Ans :
15. How do you list only duplicate lines in a file
"myfile" (1)
Ans :

More Related Content

What's hot

Data file operations in C++ Base
Data file operations in C++ BaseData file operations in C++ Base
Data file operations in C++ Base
arJun_M
 
Unix files
Unix filesUnix files
Unix files
Sunil Rm
 
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
 
File Commands - R.D.Sivakumar
File Commands - R.D.SivakumarFile Commands - R.D.Sivakumar
File Commands - R.D.Sivakumar
Sivakumar R D .
 
اسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونی
اسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونیاسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونی
اسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونیMohammad Reza Kamalifard
 
Commands and shell programming (3)
Commands and shell programming (3)Commands and shell programming (3)
Commands and shell programming (3)
christ university
 
Data Structures used in Linux kernel
Data Structures used in Linux kernel Data Structures used in Linux kernel
Data Structures used in Linux kernel
assinha
 
Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems
senthilamul
 
Unix
UnixUnix
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
Garuda Trainings
 
101 4.6 create and change hard and symbolic links
101 4.6 create and change hard and symbolic links101 4.6 create and change hard and symbolic links
101 4.6 create and change hard and symbolic linksAcácio Oliveira
 
File system hiearchy
File system hiearchyFile system hiearchy
File system hiearchy
sritolia
 
System calls operating system ppt by rohit malav
System calls operating system  ppt by rohit malavSystem calls operating system  ppt by rohit malav
System calls operating system ppt by rohit malav
Rohit malav
 
Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File Management
Damian T. Gordon
 
Chapter 10 - File System Interface
Chapter 10 - File System InterfaceChapter 10 - File System Interface
Chapter 10 - File System Interface
Wayne Jones Jnr
 
Unix Basics 04sp
Unix Basics 04spUnix Basics 04sp
Unix Basics 04spDr.Ravi
 
Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux
Ahmed El-Arabawy
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
Kevin OBrien
 

What's hot (18)

Data file operations in C++ Base
Data file operations in C++ BaseData file operations in C++ Base
Data file operations in C++ Base
 
Unix files
Unix filesUnix files
Unix files
 
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
 
File Commands - R.D.Sivakumar
File Commands - R.D.SivakumarFile Commands - R.D.Sivakumar
File Commands - R.D.Sivakumar
 
اسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونی
اسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونیاسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونی
اسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونی
 
Commands and shell programming (3)
Commands and shell programming (3)Commands and shell programming (3)
Commands and shell programming (3)
 
Data Structures used in Linux kernel
Data Structures used in Linux kernel Data Structures used in Linux kernel
Data Structures used in Linux kernel
 
Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems Unix file systems 2 in unix internal systems
Unix file systems 2 in unix internal systems
 
Unix
UnixUnix
Unix
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
101 4.6 create and change hard and symbolic links
101 4.6 create and change hard and symbolic links101 4.6 create and change hard and symbolic links
101 4.6 create and change hard and symbolic links
 
File system hiearchy
File system hiearchyFile system hiearchy
File system hiearchy
 
System calls operating system ppt by rohit malav
System calls operating system  ppt by rohit malavSystem calls operating system  ppt by rohit malav
System calls operating system ppt by rohit malav
 
Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File Management
 
Chapter 10 - File System Interface
Chapter 10 - File System InterfaceChapter 10 - File System Interface
Chapter 10 - File System Interface
 
Unix Basics 04sp
Unix Basics 04spUnix Basics 04sp
Unix Basics 04sp
 
Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 

Similar to Uop pos 433 week 4 file processing commands worksheet new

Linux admin interview questions
Linux admin interview questionsLinux admin interview questions
Linux admin interview questionsKavya Sri
 
Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.pdf
asif64436
 
Operating system
Operating systemOperating system
Operating system
HarshithaAllu
 
Operating systems unix
Operating systems   unixOperating systems   unix
Operating systems unix
Achu dhan
 
84640411 study-of-unix-os
84640411 study-of-unix-os84640411 study-of-unix-os
84640411 study-of-unix-os
homeworkping3
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
KiranMantri
 
VTU 3RD SEM UNIX AND SHELL PROGRAMMING SOLVED PAPERS
VTU 3RD SEM UNIX AND SHELL PROGRAMMING SOLVED PAPERSVTU 3RD SEM UNIX AND SHELL PROGRAMMING SOLVED PAPERS
VTU 3RD SEM UNIX AND SHELL PROGRAMMING SOLVED PAPERS
vtunotesbysree
 
Unix notes
Unix notesUnix notes
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
tarifarmarie
 
Lab6FolderF1GraphicPic.pdfPicture of OS Lab.docx
Lab6FolderF1GraphicPic.pdfPicture of OS  Lab.docxLab6FolderF1GraphicPic.pdfPicture of OS  Lab.docx
Lab6FolderF1GraphicPic.pdfPicture of OS Lab.docx
smile790243
 
linux-lecture1.ppt
linux-lecture1.pptlinux-lecture1.ppt
linux-lecture1.ppt
Nikhil Raut
 
Basics of unix
Basics of unixBasics of unix
Basics of unix
Arnold Derrick Kinney
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
PrashantTechment
 
MCLS 45 Lab Manual
MCLS 45 Lab ManualMCLS 45 Lab Manual
MCLS 45 Lab Manual
Lokesh Singrol
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to UnixSudharsan S
 
POS 433 Entire Course NEW
POS 433 Entire Course NEWPOS 433 Entire Course NEW
POS 433 Entire Course NEW
shyamuopuopeleven
 
18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma
perweeng31
 

Similar to Uop pos 433 week 4 file processing commands worksheet new (20)

Introduction to UNIX
Introduction to UNIXIntroduction to UNIX
Introduction to UNIX
 
Linux admin interview questions
Linux admin interview questionsLinux admin interview questions
Linux admin interview questions
 
Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.pdf
 
lec1.docx
lec1.docxlec1.docx
lec1.docx
 
Operating system
Operating systemOperating system
Operating system
 
Operating systems unix
Operating systems   unixOperating systems   unix
Operating systems unix
 
84640411 study-of-unix-os
84640411 study-of-unix-os84640411 study-of-unix-os
84640411 study-of-unix-os
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
 
VTU 3RD SEM UNIX AND SHELL PROGRAMMING SOLVED PAPERS
VTU 3RD SEM UNIX AND SHELL PROGRAMMING SOLVED PAPERSVTU 3RD SEM UNIX AND SHELL PROGRAMMING SOLVED PAPERS
VTU 3RD SEM UNIX AND SHELL PROGRAMMING SOLVED PAPERS
 
Unix notes
Unix notesUnix notes
Unix notes
 
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
1 CMPS 12M Data Structures Lab Lab Assignment 1 .docx
 
Lab6FolderF1GraphicPic.pdfPicture of OS Lab.docx
Lab6FolderF1GraphicPic.pdfPicture of OS  Lab.docxLab6FolderF1GraphicPic.pdfPicture of OS  Lab.docx
Lab6FolderF1GraphicPic.pdfPicture of OS Lab.docx
 
linux-lecture1.ppt
linux-lecture1.pptlinux-lecture1.ppt
linux-lecture1.ppt
 
Basics of unix
Basics of unixBasics of unix
Basics of unix
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
MCLS 45 Lab Manual
MCLS 45 Lab ManualMCLS 45 Lab Manual
MCLS 45 Lab Manual
 
Lamp ppt
Lamp pptLamp ppt
Lamp ppt
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
POS 433 Entire Course NEW
POS 433 Entire Course NEWPOS 433 Entire Course NEW
POS 433 Entire Course NEW
 
18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma
 

More from mybrands2

Chamberlain college of nursing nr 512 week 4 scavenger hunt work sheet new
Chamberlain college of nursing nr 512 week 4 scavenger hunt work sheet newChamberlain college of nursing nr 512 week 4 scavenger hunt work sheet new
Chamberlain college of nursing nr 512 week 4 scavenger hunt work sheet new
mybrands2
 
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentation
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentationChamberlain college of nursing nr 506 week 7 policymaker electronic presentation
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentation
mybrands2
 
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentat...
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentat...Chamberlain college of nursing nr 506 week 7 policymaker electronic presentat...
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentat...
mybrands2
 
Chamberlain college of nursing nr 506 week 3 your policy priority issue
Chamberlain college of nursing nr 506 week 3 your policy priority issueChamberlain college of nursing nr 506 week 3 your policy priority issue
Chamberlain college of nursing nr 506 week 3 your policy priority issue
mybrands2
 
Uop mgt 434 week 3 diaz v
Uop mgt 434 week 3 diaz vUop mgt 434 week 3 diaz v
Uop mgt 434 week 3 diaz v
mybrands2
 
Strayer leg 565 week 4 assignment 2 the downfall of enron v new
Strayer leg 565 week 4 assignment 2 the downfall of enron v newStrayer leg 565 week 4 assignment 2 the downfall of enron v new
Strayer leg 565 week 4 assignment 2 the downfall of enron v new
mybrands2
 
Strayer hsa 525 week 4 assignment 1 financial statement analysis new
Strayer hsa 525 week 4 assignment 1 financial statement analysis newStrayer hsa 525 week 4 assignment 1 financial statement analysis new
Strayer hsa 525 week 4 assignment 1 financial statement analysis new
mybrands2
 
Strayer hsa 505 week 3 product development new
Strayer hsa 505 week 3 product development newStrayer hsa 505 week 3 product development new
Strayer hsa 505 week 3 product development new
mybrands2
 
Uop acc 491 week 2 ethics, legal liability, audit responsibilities quiz new
Uop acc 491 week 2 ethics, legal liability, audit responsibilities quiz newUop acc 491 week 2 ethics, legal liability, audit responsibilities quiz new
Uop acc 491 week 2 ethics, legal liability, audit responsibilities quiz new
mybrands2
 
Uop fin 571 week 6 assignment start
Uop fin 571 week 6 assignment startUop fin 571 week 6 assignment start
Uop fin 571 week 6 assignment start
mybrands2
 
Grand canyon university esl 433 n week 7 assignment benchmark using sei strat...
Grand canyon university esl 433 n week 7 assignment benchmark using sei strat...Grand canyon university esl 433 n week 7 assignment benchmark using sei strat...
Grand canyon university esl 433 n week 7 assignment benchmark using sei strat...
mybrands2
 
Grand canyon university esl 433 n week 3 assignment proficiency level analysi...
Grand canyon university esl 433 n week 3 assignment proficiency level analysi...Grand canyon university esl 433 n week 3 assignment proficiency level analysi...
Grand canyon university esl 433 n week 3 assignment proficiency level analysi...
mybrands2
 
Grand canyon university esl 433 n week 2 assignment cultivating home and scho...
Grand canyon university esl 433 n week 2 assignment cultivating home and scho...Grand canyon university esl 433 n week 2 assignment cultivating home and scho...
Grand canyon university esl 433 n week 2 assignment cultivating home and scho...
mybrands2
 
Ash ese 603 week 4 assignment when the iep team meets new
Ash ese 603 week 4 assignment when the iep team meets newAsh ese 603 week 4 assignment when the iep team meets new
Ash ese 603 week 4 assignment when the iep team meets new
mybrands2
 
Devry ecet 370 week 6 ilab binary trees new
Devry ecet 370 week 6 ilab binary trees newDevry ecet 370 week 6 ilab binary trees new
Devry ecet 370 week 6 ilab binary trees new
mybrands2
 
Devry ecet 370 week 3 ilab the stack and the queue ad ts new
Devry ecet 370 week 3 ilab the stack and the queue ad ts newDevry ecet 370 week 3 ilab the stack and the queue ad ts new
Devry ecet 370 week 3 ilab the stack and the queue ad ts new
mybrands2
 
Devry ecet 370 week 2 ilab linked lists new
Devry ecet 370 week 2 ilab linked lists newDevry ecet 370 week 2 ilab linked lists new
Devry ecet 370 week 2 ilab linked lists new
mybrands2
 
Devry ecet 370 week 1 i lab array
Devry ecet 370 week 1 i lab arrayDevry ecet 370 week 1 i lab array
Devry ecet 370 week 1 i lab array
mybrands2
 
Devry card 405 week 7 portfolio final
Devry card 405 week 7 portfolio finalDevry card 405 week 7 portfolio final
Devry card 405 week 7 portfolio final
mybrands2
 
Bus 401 week 5 final paper evaluation of corporate performance peps ico new
Bus 401 week 5 final paper evaluation of corporate performance peps ico newBus 401 week 5 final paper evaluation of corporate performance peps ico new
Bus 401 week 5 final paper evaluation of corporate performance peps ico new
mybrands2
 

More from mybrands2 (20)

Chamberlain college of nursing nr 512 week 4 scavenger hunt work sheet new
Chamberlain college of nursing nr 512 week 4 scavenger hunt work sheet newChamberlain college of nursing nr 512 week 4 scavenger hunt work sheet new
Chamberlain college of nursing nr 512 week 4 scavenger hunt work sheet new
 
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentation
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentationChamberlain college of nursing nr 506 week 7 policymaker electronic presentation
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentation
 
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentat...
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentat...Chamberlain college of nursing nr 506 week 7 policymaker electronic presentat...
Chamberlain college of nursing nr 506 week 7 policymaker electronic presentat...
 
Chamberlain college of nursing nr 506 week 3 your policy priority issue
Chamberlain college of nursing nr 506 week 3 your policy priority issueChamberlain college of nursing nr 506 week 3 your policy priority issue
Chamberlain college of nursing nr 506 week 3 your policy priority issue
 
Uop mgt 434 week 3 diaz v
Uop mgt 434 week 3 diaz vUop mgt 434 week 3 diaz v
Uop mgt 434 week 3 diaz v
 
Strayer leg 565 week 4 assignment 2 the downfall of enron v new
Strayer leg 565 week 4 assignment 2 the downfall of enron v newStrayer leg 565 week 4 assignment 2 the downfall of enron v new
Strayer leg 565 week 4 assignment 2 the downfall of enron v new
 
Strayer hsa 525 week 4 assignment 1 financial statement analysis new
Strayer hsa 525 week 4 assignment 1 financial statement analysis newStrayer hsa 525 week 4 assignment 1 financial statement analysis new
Strayer hsa 525 week 4 assignment 1 financial statement analysis new
 
Strayer hsa 505 week 3 product development new
Strayer hsa 505 week 3 product development newStrayer hsa 505 week 3 product development new
Strayer hsa 505 week 3 product development new
 
Uop acc 491 week 2 ethics, legal liability, audit responsibilities quiz new
Uop acc 491 week 2 ethics, legal liability, audit responsibilities quiz newUop acc 491 week 2 ethics, legal liability, audit responsibilities quiz new
Uop acc 491 week 2 ethics, legal liability, audit responsibilities quiz new
 
Uop fin 571 week 6 assignment start
Uop fin 571 week 6 assignment startUop fin 571 week 6 assignment start
Uop fin 571 week 6 assignment start
 
Grand canyon university esl 433 n week 7 assignment benchmark using sei strat...
Grand canyon university esl 433 n week 7 assignment benchmark using sei strat...Grand canyon university esl 433 n week 7 assignment benchmark using sei strat...
Grand canyon university esl 433 n week 7 assignment benchmark using sei strat...
 
Grand canyon university esl 433 n week 3 assignment proficiency level analysi...
Grand canyon university esl 433 n week 3 assignment proficiency level analysi...Grand canyon university esl 433 n week 3 assignment proficiency level analysi...
Grand canyon university esl 433 n week 3 assignment proficiency level analysi...
 
Grand canyon university esl 433 n week 2 assignment cultivating home and scho...
Grand canyon university esl 433 n week 2 assignment cultivating home and scho...Grand canyon university esl 433 n week 2 assignment cultivating home and scho...
Grand canyon university esl 433 n week 2 assignment cultivating home and scho...
 
Ash ese 603 week 4 assignment when the iep team meets new
Ash ese 603 week 4 assignment when the iep team meets newAsh ese 603 week 4 assignment when the iep team meets new
Ash ese 603 week 4 assignment when the iep team meets new
 
Devry ecet 370 week 6 ilab binary trees new
Devry ecet 370 week 6 ilab binary trees newDevry ecet 370 week 6 ilab binary trees new
Devry ecet 370 week 6 ilab binary trees new
 
Devry ecet 370 week 3 ilab the stack and the queue ad ts new
Devry ecet 370 week 3 ilab the stack and the queue ad ts newDevry ecet 370 week 3 ilab the stack and the queue ad ts new
Devry ecet 370 week 3 ilab the stack and the queue ad ts new
 
Devry ecet 370 week 2 ilab linked lists new
Devry ecet 370 week 2 ilab linked lists newDevry ecet 370 week 2 ilab linked lists new
Devry ecet 370 week 2 ilab linked lists new
 
Devry ecet 370 week 1 i lab array
Devry ecet 370 week 1 i lab arrayDevry ecet 370 week 1 i lab array
Devry ecet 370 week 1 i lab array
 
Devry card 405 week 7 portfolio final
Devry card 405 week 7 portfolio finalDevry card 405 week 7 portfolio final
Devry card 405 week 7 portfolio final
 
Bus 401 week 5 final paper evaluation of corporate performance peps ico new
Bus 401 week 5 final paper evaluation of corporate performance peps ico newBus 401 week 5 final paper evaluation of corporate performance peps ico new
Bus 401 week 5 final paper evaluation of corporate performance peps ico new
 

Recently uploaded

Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 

Recently uploaded (20)

Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 

Uop pos 433 week 4 file processing commands worksheet new

  • 1. UOP POS 433 Week 4 File Processing Commands Worksheet NEW http://www.assignmentcloud.com/pos-433- uop/pos-433-week-4-file-processing- commands-worksheet-new For more classes visit http://www.assignmentcloud.com 1. How do you know how many number of users currently logged into the system? (Not considering if any user is logged more than one time) (1) A. who | uniq | sort | wc -l B. who | cut -d' ' –f1 | uniq | wc -l C. who | sort | uniq | wc -l D. who | cut -d' ' –f1 | sort -u | wc -l E. who | cut -d' ' –f1 | uniq -d | wc -l Ans: 2. Create a file “employees.txt” using vi editor or pico. (The file will have 6 fields, ID, Name, Designation, Dept, D.O.B, Salary separated by pipe) Enter these lines in the file and save it. 2133|charles smith |Manager|sales|12/12/56| 90000 9576|Rob Thomson|director |production|
  • 2. 03/12/50|130000 5778|David Blake |General Manager|marketing | 04/19/43| 85000 2765|Rick Martin|director|personnel |05/11/47| 120000 (Use cut command for the following questions A,B) (in each one mark, ½ is for the command and ½ for the output) A. Display the person's name, his designation and salary in the above file. Show the command and output Ans: B: Display first 20 characters on each line in the above file. Show the command and output Ans: 3. How do you display the hour and minute from date command using cut utility (1) Show the command and output ( ½ is for the command and ½ for the output) Ans: 4. What is the difference between the following commands? (1) $ who | grep 'mary'
  • 3. and $ who | grep '^mary' Ans: 5. We know that all user information is stored in /etc/passwd where fields are delimited by a colon. Display only their userids using cut command. (userid is the first field in /etc/passwd file) Show only top 10 userids. (1) Show the command and output ( ½ is for the command and ½ for the output) Ans: 6. Create the following four files chapter1, chapter2, chapter3, chapter4 in your current directory and enter the following text: Chapter1 : This is the first line in this file This chapter deals with the basic information of a UNIX system. Chapter2 : This is the first line in this file This chapter deals with Unix System info and shell introduction. Chapter3 : This is the first line in this File System This chapter deals with various Unix Systems.
  • 4. Chapter4 : This is the first line in this file This chapter deals with kernel system. The question is to search for a string "System" or "system" in the above files. Use wild cards in both pattern and file searching. (1) Show the command and output ( ½ is for the command and ½ for the output) Ans: 7. Show these commands and output: A. Redirect man pages of ‘find’ command to a file called, find_manpages in /tmp directory. B. Display lines not having the word “version” in the above file.(1) (½ is for the command and ½ for the output) Ans: 8. Which command of the following is correct ? (Some may work but does not make sense). (1) a. cat file file> file3 | wc -l b. cut -d ":" filename c. ls -l | grepunixmyfile d. head filename | tail e. find name "myfile.txt" -print 9. We know that ls -l command shows all the files in the current directory. How do you display only
  • 5. the directories, not files in the current directory. (You have to use ls command, but not find command) (1) Ans: 10. How do you set only read permissions to user, group and others in octal mode for a file "myfile.txt" ? (1) Ans: 11. You observed that some of your group members are fiddling with your file "myfile" and you wanted to remove the read permission to your group. How do you do? (1) Ans: 12. Here is the long listing of a file. -rw-rw-rw- 2 Y435678 odms 22 Sep 02 12:03 myfile.txt Is the above a file or a directory? To which group does it belong? (1) Regular file, Y435678 file, Y435678 file, odms directory, odms
  • 6. directory, Y435678 Ans : 13. Here is another long listing of a file. (1) -rw-r----- 1 Y435678 odms 20 Sep 02 17:03 file.txt. What are the owner permissions? read, execute read, write write, execute all since s/he is the owner Ans: 14. The file users_data has the following contents : (1) Tom Smith 7.00 15 105.00 Rob Sheryl 8.00 20 160.00 Ken Bradman 7.00 13 91.00 Peter Smith 6.00 15 90.00 Dennis Smith 8.00 13 104.00 Tom Dave 9.00 12 108.00 How do you sort the above file and redirect the output to another file called sortedusers Ans : 15. How do you list only duplicate lines in a file