Question: From ~/asgt2, execute following commands: rm * mkdir d1 d2 .d10 f11 touch f1 f2 .f20 d11 ls -al | wc -l The result of
From ~/asgt2, execute following commands:
rm *
mkdir d1 d2 .d10 f11
touch f1 f2 .f20 d11
ls -al | wc -l
The result of the last command should be 11 (ell-ess dash-a-ell pipe to wc dash-ell).
But why does the command pipeline ls -a1 | wc -l write 10 to the console? (This is ell-ess dash-a-one pipe to wc dash-ell).
From ~/asgt2, execute following command:
rm -r *
Some files and directories remain. How many files and/or directories remain in ~/asgt2 (Not including the current and parent directory)?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
