Using linux Draw the resulting structure after one has typed

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.

Solution

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 ~/

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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site