ls -FaGlh a.txt b.txt | awk ‘{ print; total += $4 }; END { print “total size: “,total }’

total size: 205.7

Categories: Linux

Related Posts


How to install PostgreSQL 10 on Ubuntu Xenial 16.04 LTS

For installing the new version of PostgreSQL 10 on Ubuntu Xenial 16.04 LTS :   sudo sh -c 'echo "deb xenial-pgdg main 10" > /etc/apt/sources.list.d/pgdg.list' sudo sh -c 'echo "deb xenial-pgdg-testing main 10" >> /etc/apt/sources.list.d/pgdg.list' sudo apt-get install wget ca-certificates wget --quiet -O - | sudo apt-key add - sudo apt-get update sudo apt-get upgrade sudo apt-get install postgresql-10 pgadmin3 Source: Related PostsUpgrading From Biolinux 7 (Ubuntu 12.04 LTS) Read more…


Copying files without overwriting destination

rsync is used by to copy files remotely and locally rsync -avzu /home/x /y -u = do not overwrite a file at the destination, if it is modified Source: Or  you can use cp Read more…


Adding a user to a group

sudo usermod -a -G www-data raony   Related PostsCopying files without overwriting destinationCheck the sum of file size from a list of files (ls)Upgrading From Biolinux 7 (Ubuntu 12.04 LTS) to Ubuntu 13.10How to install Read more…