General :: Show Size Of Folder Contents In Ls Or Some Other Command
Sep 29, 2010
I 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]....
View 4 Replies
ADVERTISEMENT
Jun 11, 2010
I have a folderA that contains folderB that contains a lot of files. I would like to get rid of folderB, but not its contents. I want those contents to be inside of folderA. How can I accomplish this on the commandline?
View 2 Replies
View Related
Feb 2, 2011
can i use one samba share with a folder showing the contents of another directory.shortcuts don't work on non ubuntu systems and it won't resolve links to files no on the share
View 5 Replies
View Related
May 20, 2010
I want to show the contents of a file on Dialog box for which I have use the "--textbox" dialog and "--tailbox" dialog.
But it doesn't show the whole contents of file, it only shows some of the data.
How do I get it to show the entire file data?
View 1 Replies
View Related
Oct 26, 2009
I want to know is there a command to find size of a folder.
View 4 Replies
View Related
Jul 13, 2011
I have many folders with many subfolders. All I want it to get the folder name and the first subfolder. I tried using ls -R but this give me more than I want it. Let say I have:
dir1/subdir1/sub_1_1/file.a
dir1/subdir1/sub_1_1/file.a2
dir1/subdir1/sub_1_1/file.a3
[code]....
All I want when I execute the command is to show me:
dir1/subdir1
dir1/subdir1
dir1/subdir2
[code]....
View 4 Replies
View Related
Jul 2, 2010
Is there a way to recreate all the folders from one directory to another without copying over the contents of the folder? I've been trying to do something like this,
Code:for i in `ls $X`; do mkdir $PATH/$i; doneUnfortunately $i is deliminated by whitespaces in the filenames and not the actual folders.
$X contains only other folders so I dont have to worry about regular files but any kind of more "advanced" solution would work.
View 1 Replies
View Related
Apr 24, 2010
I'm trying to find a command or program to show what files and folders are taking up the most space on the hard drive, much like tree size view on windows, is there and equivalent on linux?
View 2 Replies
View Related
Nov 23, 2010
In 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 Related
Mar 12, 2011
I normally use a very lightweight Linux setup. No desktop like Gnome or KDE, just Icewm as the windows manager and nothing else that normal users might consider essential. Well, I do need a file manager - I use Thunar.
Recently I've been trying Gnome. Whenever I shove a memory stick into a USB port, or connect my digital camera, it can automatically pop up a file manager showing all the goodies on that device. KDE does this too. I like this. Although quick at the command line, I like not having to go sudo to mount the device and all that.
If I want to stick with a lightweight setup using Icewm+Thunar, is there something non-huge I can install to make external devices fire up a Thunar window, or otherwise make access to the contents brainlessly easy?
View 1 Replies
View Related
Sep 23, 2009
I have a folder name is /home/kemal. I want to give a permission to an user name is kaplan. I want to see this user name is kaplan that must see kemal folder's contents.
View 1 Replies
View Related
May 2, 2011
How to Copy the entire folder contents (including sub-folders and their contents) to another folder using PUTTY? Is there any command for that?
View 3 Replies
View Related
Oct 13, 2010
Recently I did a System Mechanics clean-up of invalid and other misc files. The files were moved to the recycle bin, but I couldn't open a file individually while it was in the recyle bin in order to double check whether or not I wanted to perminently delete it. I then selected all items and moved them to a single folder hoping to open it later to review the individual files.I don't know the folder name or what part of the computer this folder was moved to. Is there a way I can find this new folder, name unknown, that was created on 10-12-10? I'm sure it's taking up valuable space in my computer and I want to permently delete the unwanted items individually and not as a whole batch.
View 1 Replies
View Related
Jan 3, 2010
I have a bunch of folders with different stuff in them. I would like to be able to put a different image on each folder to represent the contents.
View 8 Replies
View Related
Oct 5, 2010
How can i compress to .gz my folder public_html:
media/sda7/user1/public_html/
I want all files and folders and subfolders and images and everything inside of public_html. Also to be saved on the same folder so i can find it easy How can i do it?
View 4 Replies
View Related
Feb 21, 2010
I should know this but I figured I'd ask before I screw something up.
What is the command to cp just and only the contents of a folder, not the folder itself, into a new folder?
Code: cp -R /path/to/folder/ /to/new/folder/
Is this right?
View 6 Replies
View Related
Jul 26, 2010
Is there a way to essentially make all of one folders content as a system link in another folder (I have "My Documents" on my external and my computer, they have different things, I'd like to have one "My Documents" which shows both contents and hide the other two
View 3 Replies
View Related
Feb 23, 2010
shell command to display contents of a file? Like that of .txt or .html
View 9 Replies
View Related
Jul 28, 2010
As 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 Related
Mar 31, 2010
I am not especially cli adept so could someone tell me the best way to use the diff command to get the difference between a string of text and the contents of a file instead of between the contents of two files?
View 3 Replies
View Related
Jul 2, 2010
Code:
cp -r aa123.h aa*.h
results in
Code:
cp: target `aa456.h' is not a directory
Yes I read man page cp (1p). There is something written there about it, I couldn't understand though.
View 7 Replies
View Related
Jan 24, 2010
Anyone know the trick to getting Ubuntu to show the contents of a window while I resize it? It WAS doing this until I loaded up the drivers for my Nividia Quador 135M (works great!) I'm very happy with my Ubuntu 9.10, I even have all the bouncy window effects running.
Still, I would love get rid of the "faded blue resizing box" and see the contents instead.
View 6 Replies
View Related
Jun 22, 2010
I 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 Replies
View Related
Nov 30, 2010
i 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 .
View 5 Replies
View Related
Apr 1, 2010
Yesterday after downloading a file I tried to find it on the desktop where downloaded files are saved. It does not appear in nautilus but when I look for it from command line it appears to be there. I simply do 'ls' for this and that means its not hidden.Googled it for an hour to find a suitable answer but most of the posts focus on removing the in front of file name which is not the case here.
View 13 Replies
View Related
Oct 21, 2010
My folder have some files and I want to show the number of files on folder at "Total file on folder: " Ex: Monday folder have six files and it will show "Total file on folder : 6" when I run a script. This is my code :
#!/bin/sh
if [ -d /home/kenzo/Monday/ ] && {
echo "Monday"
ls -l /home/kenzo/Monday/
[code].....
View 2 Replies
View Related
Aug 8, 2011
Whenever I go inside a directory in Linux, it shows the file path at prompt like:
root@vivek-HP-Pavilion-dv6-Notebook-PC:/var/www/abc/def/
How can I change it to show short names instead?
View 1 Replies
View Related
Apr 18, 2010
i locked a folder of pictures on my linux and now want to delete them, but it wont even let me open the folder or do anything with it, what do i do to unlock it then delete i
View 5 Replies
View Related
Nov 16, 2010
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 Related
Jul 5, 2011
how do I increase the size of my home folder in OpenSuse11.3
View 12 Replies
View Related