General :: Get File / Folder Size With SSH On System?
Jun 22, 2010I am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it?
View 2 RepliesI am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it?
View 2 Repliesi have a folder with 10 files and i would like to determine the size of each file. i was trying the command
Code:
du -sh foldername
but i receive the total size .
is lvresize with --resizefs options re-size the Logical Volume and then re-size the file system? i mean we don't need to use resize2fs?I looked at man pages but it doesn't explain this option.
View 3 Replies View RelatedHow can we find the maximum size of the inode table and what decides it, and how the maximum size of volume of file system is decided ?
View 4 Replies View RelatedIn Linux bash shell, for a given directory, how can I list:The create date for that directory The number of files in that directory The number of subdirectories in that directory.
View 3 Replies View Relatedreducing the size of LVM. I did it by using the commands, lvreduce,fsck,resize2fs.After reducing the lvm size, my system is not booting...it is saying file system corrupted error.
View 1 Replies View RelatedWhen i want copy a file or folder in some system folder like sbin,Etc.show me error about privilage but when I'm in console i use su command for become admin and i can copy my file or folder.in other operation system like windows user can copy anything,i want know for direct copy my folder in linux without console what should i do? i must join my user name in root group?
View 4 Replies View RelatedAs I have a opt/sybase folder in Linxs I want to increase the size of this folder how can I increase it? For example the size we mention at the time of installation Sybase is 2gb now I want to increase by 4gb how can I increase it.
View 2 Replies View RelatedI want to know is there a command to find size of a folder.
View 4 Replies View RelatedCan anyone tell me how to increase system file's partition size.I have ext3 type partition where FC11 is installed.Is it possible to increase the size of ext3 without lost of data?
View 2 Replies View RelatedI downloaded ubuntu 10.04 and install it from windows vista (32 Bit) and gave it initial memory 5 GB, but after I started using it I always got a message that I have a very low memory left (16 MB only !!!) and I cannot install any updates or new applications , so is there any way I can expand the File system files without reinstall the OS again????
View 2 Replies View RelatedI know these folders each have >80gb of files. Yet, they only show 4.0K in ls -lah? How can I have ls show size including the contents?
[root@aapsan01 aapxen01]# ls -lah
total 48K
drwxrwxrwx 6 root root 4.0K Sep 29 03:45 .
drwxrwxrwx 15 root root 4.0K Sep 27 09:15 ..
[Code]....
I'm installing things in a new Red Hat server and saw that the /var folder is full (100%). I need this folder to have more space or another kind of solution because this server is going to be used as a print server.
View 7 Replies View Relatedhow do I increase the size of my home folder in OpenSuse11.3
View 12 Replies View RelatedI have written a script.
#/bin/bash
a=`du -sh /root/samplefolder | cut -f1`
echo $a > testfile
[code]....
The aim of this script is, when the folder reaches 20M then attributes will be set to that particular folder so that no newfiles and folders cannot be created or copied to that samplefolder. whenever i copy a file morethan 20M to that folder its getting copied fully and then the attributes were applied. But i dont want this to happen, when the folder reaches its maximum current write operation to that folder should be stopped automatically with a error.
how to create a script when my mailqueue (mqueue) folder size reaches 1GB and sent email alert to my email id.
Once mqueue folder size reaches the sent alert by mail. Because everytime my mqueue folder size increasing.
Are there software that can split big file size into small file size in Linux?
View 1 Replies View RelatedI need to copy a file from my desktop to a system folder but unsure how. It needs to go to the "etc/X11" folder
View 6 Replies View RelatedI was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.
But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??
I have an NFS server running an older version of AIX that exports two disk partitions. Let's say /1 and /2I also have an NFS client running Fedora 9.I am able to NFS mount /1 and /2 from NFS server under /mnt/1 and /mnt/2 on the client.If I do a df command on the aix server,I see that /1 is 2Gb total and 1.7Gb is usedand /2 is 2Gb total and 1.4Gb is usedI see the same if I do a df command on the NFS client (Linux)Now, the confusing part is here: in the GUI of Fedora, if I go under /mnt and right click on /1 and check folder properties, it tells me that there is ~ 54 000 files (which i assume is the correct number) for a total of 5.3Gb! And for /2, properties indicate 1.2Gb. Where do these extra 3.6 Gb come from on /1...? and even the smaller difference for /2 confuses me (but this might be just the way different systems round off large numbers)?
View 1 Replies View RelatedOur LAN is connected to internet via leased line, and it is getting slow at peak times.We doubt someone might be downloading files of huge size.Instead of SSH-ing into each system and finding out the download size (ethstatus), is it possible to view from a network bandwidth monitoring software?
View 2 Replies View RelatedHow can I check and set who can view or open a given folder or file?
View 1 Replies View RelatedI have a large number of folders that each contain quite a few files of varying sizes (from a few bytes to 400kb or so), mostly smaller ones. I need to get the actual (not the disk usage) size of these folders. Is there any way to do this with a command like 'du'?
View 4 Replies View RelatedThere seems to be a limit of 2 gb on files. Im trying to add my music files and have about 7 gb. Is there a way to make a file that will allow the extra info.
View 7 Replies View RelatedFirstly, I did perform a search on this problem in these forums, but didn't quite get what I was looking for. So I hope I don't yelled at for making a duplicate post. So I used rsync to backup my webroot to another nix machine. du -hs gave me 1.3 G on the source machine and 1.1 G on the backup machine. I tried to compare the individual files and noticed a trend. The files on backup machine were always smaller than the files on source machine. The source uses SATA drive, destination uses IDE. So this time I rsynced locally to another folder on the source machine. Same size anomaly. So i did a simple cp file ~/file and same size anomaly. So it's not a rsync issue.
I took a file and ran md5sum on both, the source file and destination file. To my surprise, even though the file size was different, they had the same md5sum. Now, let it be known that the source machine is a production server and the dir i rsynced was being used, serving pages to the web. I googled about this and came up with stuff like open descriptors and holes. I don't understand this stuff and was wondering if this was really the case. What are those if it is the case? And my backup copy is 100% identical right? There are thousands of files and I ran md5sum only on couple. Can I take comfort that when time comes, I can restore using my backup without any problems?
I found one weird behavior.The file i copied from a server is almost doubled the size from the server.How come?
example:
720K ./xxxx vs 360K ./xxxx
(my pc) vs (server)
I have checked both filesystem are ext3
How to reduce the size of a file. Is truncate related to this?
View 12 Replies View Relatedi have this directory with multiple images 'pics' and the size is 20mb, and i want to make a .zip or .rar package of this directory but with an increased size so the .zip/.rar file will be 100mb, and then when you extract it the file size is the original 20mb
View 10 Replies View RelatedShould the swap file be as large as possible or as small as possible providing a person has 8GB of installed ram.
View 14 Replies View RelatedI have copied some vides from my camcorder and the size seems a bit excessive - 140mb for 3 mins! Is there a program I can use to save the .mp2 file as .mpg and reduce the size?
View 2 Replies View Related