Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with this using the ubuntu terminal 1. Wildcards and Expansion. What

ID: 670350 • Letter: I

Question

I need help with this using the ubuntu terminal

1. Wildcards and Expansion. What command is to do the following?

b. List all files beginning with either a x , a y , or a z ?

c. Copy /etc/passwd and /etc/group into your current directory given that you can only type /etc once?

d. Rename a app.conf file to app.conf.bak using brace expansion?

e. Copy /var/log/syslog file into your Project directory in your home directory using tilde expansion?

f. Copy /var/log/apt directory into your Downloads directory in your home directory

using parameter expansion?

g. Create the following directory tree in your home directory?

Pictures/

2012/

spring/

summer/

fall/

winter/

2013/

spring/

summer/

fall/

winter/

2014/

spring/

summer/

fall/

winter/

2015/

spring/

summer/

fall/

winter/

h. Create the SxxEyy empty files, where xx is from 01 to 10 and yy is from 01 to 24?

Note that there is padding 0 for onedigit

number.

i. Remove all the files and directories, which name(s) starts with hist , follows by exact 4 characters and ends with either log or dat , ignoring nonexisting error?

j. Assign the number of the word “ the

Explanation / Answer

1.
(b)
ls ax* ay*

(c)
cp /etc/{passwd,group} .

(d)
mv app.conf{,.bak}

(e)
cp /var/log/syslog ~/Project