Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective: The objective of this lab is to work with files of UNIX file system. Procedure: 1. Open your Unix shell and try these commands:

image text in transcribed
image text in transcribed
Objective: The objective of this lab is to work with files of UNIX file system. Procedure: 1. Open your Unix shell and try these commands: Create a new file and add some text in it (1) cat > filename View a file cat /etc/passwd more /etc/passwd more filename (0.5) > Copy file, making file2 cp filel file2 Move/rename filel as file2 mv filel file2 (0.5) >Delete filel as file2 (0.5) rm file rm -i file first // Delete file // Double-check > Counts the lines, words, characters in file (0.5) wc file (1) // List lines grep lubuntu /etc/passwd containing "lubuntu' in /etc/passwd //Lines grep 'else /etc/profile containing else in /etc/profile //Lines grep united-/myFile starting with 'united'in -/myFile > Output can be redirected to a file with> (1) ols > dir.txt cal 1997 > year 1997 > Output can be redirected to a file with>'(1) Is > dir.txt cal 1997 > year 1997 > Output can be appended to a file with '>> (1) cal 1997 > years *cal 1998 >> years (1) > Concatenate two files - cat fi f2 > fs > Input redirection (less common) uses ' Combine input and output redirection (1) * wc year-counts

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Power Bi And Azure Integrating Cloud Analytics For Scalable Solutions

Authors: Kiet Huynh

1st Edition

B0CMHKB85L, 979-8868959943

More Books

Students also viewed these Databases questions

Question

6. Explain how you would conduct a job analysis.

Answered: 1 week ago

Question

Explain how cultural differences affect business communication.

Answered: 1 week ago

Question

List and explain the goals of business communication.

Answered: 1 week ago