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

Using linux Draw the resulting structure after one has typed these commands in t

ID: 3799908 • Letter: U

Question

Using linux

Draw the resulting structure after one has typed these commands in the Shell.

cd ~ mkdir bunny touch teddy mv bunny teddy cat teddy >> ./bunny/out touch theSky touch TheCloud glopt shopt -s extglob mv !(t*) ~/bunny rm !(@he*)

Do each of the following in only one line.

Remove all files whose name includes ToKill

Count the number of files that start with the letter s, within the current folder only.

Combine three files named 1.txt, 2.txt and 3.txt, into a single one named combined.txt

Move the file index to the root folder, and leave a file named goneGirl if it worked.

Explanation / Answer

Remove all files whose name includes ToKill
rm *ToKill*

Count the number of files that start with the letter s, within the current folder only.
ls d* | wc -l

Combine three files named 1.txt, 2.txt and 3.txt, into a single one named combined.txt
paste 1.txt, 2.txt 3.txt combined.txt

Move the file index to the root folder, and leave a file named goneGirl if it worked.
mv goneGirl ~/

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote