answersLogoWhite

0


Best Answer

One liner script to total the size of all the files in the current directory.

$ ls -l | awk '/^-/ {total+=$5} END{print "Total of all file sizes "total}'

Total of all file sizes 906

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 15 Using awk sum the file sizes in your working directory and print the results?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

The directory shown by pwd can be referred to as the current working dirctory?

pwd - means print working directory, which is always the current directory.


How do you identify the working directory in Linux?

The command 'pwd' will identify the full path of the present working directory.


How do you find absolute path name of your home directory what is it on your system?

All you need is the PWD(Print Working Directory) command, this will list your current directory absolute path All you need is the PWD(Print Working Directory) command, this will list your current directory absolute path


Define the term pwd in unix?

The Command "pwd" stands for 'Print Working Directory' and returns to the user, on the screen, the present working directory. In the example below, the user types "pwd" and presses the enter key to be shown on the next line, the name of the directory that the user is currently under (etc): $ pwd /etc


How do you print the current directory in shell program?

pwd


What command is used to display your current working directory?

In my Ubuntu terminal, I would type one of these two example commands (there are other commands, but I tend to mainly use the two below).cd change to home-directorypwd means display the path of the current directoryNote: pwd stands for print working directory.


How can I print off my raffle tickets?

The best way to find a printing company who will print out at short notice like this is to look in the local business directory. You can find these on the Internet or you can look in a paper directory like the Yellow Pages.


What has the author Arlene L Eis written?

Arlene L. Eis has written: 'The Legal Researcher's Desk Reference, 1990' 'The Legal Researcher's Desk Reference 2004-05 (Legal Researcher's Desk Reference)' 'Legal Newsletters in Print 2003' 'International mikvah directory' -- subject(s): Directories, Mikveh 'Legal Looseleafs in Print 2003' 'Legal Looseleafs in Print 2007 (Legal Looseleafs in Print)' 'Directory of Law-Related Cd-Roms 2000' 'The Legal Researcher's Desk Reference 1996-97 Supplement' 'Directory of Law-Related Cd-Roms 1996' 'Directory Of Law-Related CD-ROMs 2006' 'Legal Loose-Leafs in Print, 1992' 'Legal Newsletters in Print 1999' 'Directory of Law-related Cd-rom 2007' 'Legal Looseleafs in Print 2004' 'Legal Newsletters in Print 2002' 'The Legal Researcher's Desk Reference, 1992 (Legal Researcher's Desk Reference)' 'Legal Newsletters In Print 2005' 'Legal Looseleafs in Print 1997' 'The Legal Researcher's Desk Reference 2002-03 (Legal Researchers Desk Reference, 2002-2003)' 'Directory Of Law-Related CD-ROMs 2005' 'The Legal Researcher's Desk Reference' 'Legal Looseleaf in Print 2002' 'Legal Looseleafs in Print 2006 (Legal Looseleafs in Print)' 'Legal Newsletters in Print 1996' 'The Legal Researcher's Desk Reference 1998-99/ With Supplement (Legal Researcher's Desk Reference)' 'Directory of Law-Related Cd-Roms 1999'


What is the command to display your current location in Linux?

pwdThis is short for "Print current directory."


How do you print square using for loops?

how to print "square" using for loop


What is the default home directory for a user in Linux?

Each user (on a multi-user computer) has a home directory, and it is the first directory shown after a user logs in. For instance: rodney@downstairs:~$ shows that my user name is rodney, my host or computer name is 'downstairs', the tilde '~' shows that I am in my home directory, and the dollar sign '$' shows that all is ready for me to type in a command. Typing the command 'pwd' (without the single quotes) in a terminal will show which directory you are in - pwd means 'print working directory'. The command 'ls' will list all directories.


Can you print out working papers?

You can print working papers as long as you have a printer connected to your computer. Most papers can be printed by simply right clicking on the paper and selecting the print option.