/home/you. What is the absolute path for
~/m/../../tmp/fred?
du (disk usage) which takes directory names as
command lne arguments. What is the option to only display the summary total for
each command line argument? Given a directory, how do you use this to find the
size of each immediate subdirectory? What pipeline will list these directories
in order of total size of each?
for i in /tmp/*
do
if [ -d $i ]
then
tar cf /tmp/$i.tar $i
else
rm $i
fi
done