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 ~/
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.