Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UNIX 2.1 Problem 1: Document your testing Write a script that will use commands echo, date, cal to print the account name of the person

UNIX

2.1 Problem 1: Document your testing

Write a script that will use commands echo, date, cal to print the account name of the person executing the script, the date when the script is being tested, and the month.

The following lists the result when I test my script.

-bash-4.1$ ./problem1.sh

username is testing this script on Tue Apr 12 23:08:10 MST 2016 in April 2016

Su Mo Tu We Th Fr Sa

1 2

3 4 5 6 7 8 9

10 11 12 13 14 15 16

17 18 19 20 21 22 23

24 25 26 27 28 29 30

-bash-4.1$

2.2 Problem 2: Create and browse files

Write a script that will use commands cd, pwd, mkdir, ls, echo to

  1. Go to your home directory,
  2. Display the name of your home directory,
  3. Create a subdirectory infv320 under your home directory,
  4. Create a file called myfile.txt which contains Hello World
  5. List the content of the current working directory including the hidden files.

2.3 Problem 3: Pipes

Write a command which will use both wc and ps to display the current number of processes for your account

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

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

Describe your ideal working day.

Answered: 1 week ago