General :: Why Does Du -sl Show Different Sizes For Source And Result Of Cp -rl?
Jul 14, 2011
I have used cp -rl to copy a folder. When measuring the size of the source and of the result of the copy du -sl returns slightly different sizes, even though diff confirms that their content are identical.Both folders reside on the same hard drive, no modifications to any of them have been done between the copy and the measure. I found nothing in the documentation of du and cp which could explain the difference.
We talk about 12pt, 14pt font sizes. Do those numbers represent physical size in some unit or number of pixels? I guess it is the former, because same font size looks different for different DPI values, but in what unit? Also a relevant question: does browsers like firefox and chromium use different system of font sizes, because to get the same physical size, I alwasy need to set larger values in firefox than in other applications. Setting dpi and resolution values using about:config has no effect.
I just ordered a 60 G SSD drive which I am going to use as my OS drive to replace the drive below. Can I just use DD to switch ? dd if=/dev/sda of=/dev/sdb (New Drive)
Device Boot Start End Blocks Id System /dev/sda1 * 1 89723 720693248 83 Linux /dev/sda2 89723 91202 11878401 5 Extended /dev/sda5 89723 91202 11878400 82 Linux swap / Solaris
Let's say I want to get the size of each folder of a linux file system. When I use ls -la I don't really get the summarized size of the folders.If I use df I get the size of each mounted file system but that also doesn't help me. And with du I get the size of each subfolder and the summary of the whole file system.But I want to have only the summarized size of each folder within the ROOT folder of the file system. Is there any command to achiev that?
kernel 2.6.21.5, GNU (slackware 12.0)I have entered sourceforge.net. The fonts in their pages I find I cannot change their size. Neither ^+ (cntl++) has any effect. And the resolution I have it (/etc/X11/xorg.conf) at 640x480 (in this way I have a really big screen; so, big characters). I can't almost read that tiny characters.
I want to get the size of each folder of a linux file system. When I use ls -la I don't really get the summarized size of the folders. If I use df I get the size of each mounted file system but that also doesn't help me. And with du I get the size of each subfolder and the summary of the whole file system. But I want to have only the summarized size of each folder within the ROOT folder of the file system. Is there any command to achieve that?
I am using Open office 3.2 with Ubuntu 10.10. Trying to get it set up to print out the Christmas address labels. To register the data source its 'FILE'> 'WIZARDS' then' ADDRESS DATA SOURCE.' But OO doesn't show the 'ADDRESS DATA SOURCE' at the bottom of the list, so I am stuck. Apart from that, I have had no problems with ubuntu and its working well.
I recently resized one of my Logical Volumes that contained 160MB data from 500MB to 6.5GB. After resizing it, I checked the size of the data via 'du -sh' and found that my data had reduced to 143MB.
Fortunately, I backed up the the 160MB of data on another partition before resizing the Logical Volume. I ran 'diff' on both directories holding the 160MB and 143MB, but there was no difference detected.
how come there is a 17MB difference after resizing?
In case you're wondering how I performed my resize, this is what i did:
I have an Ubuntu Linux on a VMWare running and I've installed RPM Package Manager. However when I try to query all packages using the rpm -qa command, I don't get any results returned.
#!/bin/shLOOK_FOR="NTLMAuthenticationFilter"for i in `find ./ -name "*jar"`doecho "Looking in $i ..."grepjar -e $LOOK_FOR $idoneI wrote the script above, and try to find if there any file name LOOK_FOR exist in those jar,my quest is: grepjar -e $LOOK_FOR $ihere how can I check if there are any successful result , and output them ?
I configured it to use IMAP to access our exchange 2010 server front end on a LAN connection. Our webmail connection is segregated behind Forefront, so it was not connecting/authing that way. Even though smartphones have no problem. (sidenote, is there an activesync linux mail client ?)
I have many root folders and several folders underneath my inbox. total mailsize in inbox is 3.5 GB without subfolders. The sent is likewise as large. And is likewise empty.
Things I checked already: View is all Folder subscription is on and local copy is on
More info: Thunderbird worky fine. But thunderbird is missing calender Tried adding lightening, but it won't add into thunderbird. Will try finding a diff add on, or if anyone knows how to get lightening into thunderbird 3.1.8 on ubuntu 10 that would be great as well.
Every time I need to find a file and then open it, I have to use : find ./ -name **.properties. , then copy the result, and then vi "paste the result here" . If I need to use a mouse, it can be a little trouble. So is there any better way to do this?
List of 77 lines with the names of movies. For ease, let's say it's in a text file. What I want is a command line argument I can pass that'll read each line and pick one of those 77 lines at random, except I can't figure out how to do this. Is there a program I can just pipe the output of 'cat listofmovies.txt' to?
I am connecting to MySQL DataBase using shellscript and writing a select statement like select attachmentid from attachments where pageid=10175 I want to store the output of the select statement into a shellvariable or a file. How can i do it using shellscript.
I have a CSV file with 8 columns. I want to check the 5th column, which will contain a single capitalised letter. If that letter is say "B" I would then like to replace the 2nd column in the csv with an incremental number starting at 0 (basically a count) with a prefix of B (B0000001) Sample row would be:
So I am trying to put together a simple command that when executed from the project folder will run the appropriate hg/svn command in each project i.e:
[Code]...
Since the client has many such projects, Instead I am looking for a solution similar to find -exec where the svn/hg commands are automatically executed on each first level of match (i.e. svn up is run in the project/a folder but not in project/a/subfolder). How can such a command be constructed ?.
I want to search files (basically .cc files) in /xx folder and subfolders. Those files (*.cc files) must contain #include "header.h" AND x() function. Clearly, I wanna list of *.cc files that have 'header.h' & 'x()'. They must have two strings.
I tried several ways, and got only files with header.h OR x(). Some examples given in Internet doesn't give any result in my system. I am using Fedora 8.0 in my PC and I have grep 2.5.1 version.
I am wanting to create the smallest server I can possible. I have a small server I use as a print server and for file sharing. The hard drive is about 80GB. Since I only run cups and samba, I see no reason to take up an addition few GBs with major distros just to run the OS. I know it is possible to get a small distro around 50MB or so. I would even be happy with an OS running around 200MB. what would be the best way to go about doing this? LFS is just too complicated and time consuming for the end result. Would something like Gentoo be better? Anything else that I may not know about?
I have the following commande /sbin/fuser -f -u /u/DT01/F010107 1>/tmp/null 2>/tmp/seausr.T0069 when executing as root 'su' this give me all user using the file. but when tried with 'sudo' i am asked with 'user password'. Is ther anyway to simply get the result without having to supply a password and to see all user not only me. (i have the file open also).
i've just appeared RHCE exam. i passed RHCT....but got only 36% in rhce part. but i configured all the servers correctly. i wrote shell script of iptables and i successfully run it. i wrote the following scripts....
[Code]...
the result of shell script showed ok when i tested during exam. i didnt know why i failed in rhce..?? is there any problem in the above scripting..?? BTW i checked all the servers and i found ok after rebooting machine.
I am trying to write a script to access sqlplus and use the output to replace the result in another file. But I am having some issues with it (This script is just a test script and I am just trying to print the updated value.
#!/bin/bash I am not able to post the sqlplus connection, but it works. bb=$a
I came across this reult of the type command (hashed) in another post. (see below).
Code:
fraespappp8:/data/apps > type topic_file_publish.sh topic_file_publish.sh is hashed (/data/apps/pnbgstk/publication/topic_file_publish.sh) This (result = hashed) is new to me.