Solved

Telnet directory size in bytes

Posted on 1999-01-14
3
295 Views
Last Modified: 2012-05-04
On a Unix system after telnet'ing into the server what is the command to findout the total bytes in the current directory plus all it's sub-directories and files contained there in?
0
Comment
Question by:timothy1
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2008722
du
0
 
LVL 1

Expert Comment

by:toTo
ID: 2008723
du -sk .
-s to only have the total
-k to have it in kilobytes
 is the current directory
0
 
LVL 1

Accepted Solution

by:
rhugga earned 50 total points
ID: 2008724
to list total amount

du -sk .

To have it print each file, blah blah...

du -sk ./*


0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now