General :: Pop Up A Message If Filesize Smaller Then 30 KByte
Feb 28, 2011
I have a zenity message box in a script
zenity --info --text='done' > /dev/null 2>&1
I need to pop up a message, e.g.: "file is smaller then 30 KBytes!" when a file is smaller then 30 KBytes. How could i write an "if then else" script to pop up a zenity message, when e.g.: "FILE" is smaller then 30 KByte?
View 3 Replies
ADVERTISEMENT
Jan 15, 2011
How can I make ls (or any other particular command) to list me only files bigger than a specific file size?
View 1 Replies
View Related
Jun 6, 2011
How can I know the filesize of the downloaded file before downloading it?
Using Ubuntu/Fedora
View 1 Replies
View Related
Aug 26, 2010
I am trying to output md5 or sha1 along with fullpath/filename and file size but I dont seem to find a way to do this.
with
Quote:
find . -printf '%s %p'
i can retrieve size and fullpath and filename
however I am not able to merge that info with the md5 or sha1 of the file
my aim is to have a file such as this
6435b607f86b6e6be1e77bb3b1987677d1377275 ./abc/asda/file1.txt 404
6435b607f86b6e6be1e77bb3b987677d13772725 ./abc/asda/file2.txt 1404
also, performance is an issue for me, since i need to get the info out of 10m files (approx 6TB), so commands like find are preferred and less iterations among commands would be great too.
btw i've tried to use something like this
Quote:
find . -type f -printf '%s %p'| xargs awk '{x=system("md5sum "$2)}END {print x" "$2" "$1}'
but variable x contains the return value of the system command md5sum and not the stdout
View 9 Replies
View Related
Jan 22, 2011
I am using 10.04 LTS Lucid, and I notice the free space of root is getting smaller and smaller.
Five months ago, there was about 3.9GB free space of root, but now it is only 1.6GB. I always run sudo apt-get autoremove and sudo apt-get autoclean every time the update is finished, and also use Bleachbit to clean the system, but both are useless.
I never faced such problem with older versions of Ubuntu, is there any measure to fix it?
View 6 Replies
View Related
Jan 23, 2011
I am using 10.04 LTS Lucid, and I notice the free space of root is getting smaller and smaller. Five months ago, there was about 3.9GB free space of root, but now it is only 1.6GB. I always run sudo apt-get autoremove and sudo apt-get autoclean every time the update is finished, and also use Bleachbit to clean the system, but both are useless.
I never faced such problem with older versions of Ubuntu, is there any measure to fix it?
1. There is not any .deb in the /var/cache/apt/archives.
2. The total content of /var/log is only 167.6 MB, that won't be a problem.
View 5 Replies
View Related
Dec 21, 2010
i'd like to know the total filesize of all files found with the find command, so
Code:
find -iname '*.mpg' | xargs -I {} du -sh {}
but this gives me the filesize of each file, since each line is passed to "du".
how can I pass the whole list through the pipe?
View 6 Replies
View Related
May 22, 2011
I ordered a new laptop which has a conventional hd with the pre-intalled os on it. I would like to make an image of all the software that is installed on this conventional hd and move it to an ssd which I will use to replace the hd. Problem is that the conventional hd is 320GB and the ssd is only 240GB. All solutions I've found require the target partition to be at least as large as the source.Is there any way of doing this using linux?
View 8 Replies
View Related
Jun 14, 2011
I am looking for an application to detect mp3 duplicates using the mp3 spectrograph (sound wave matching) or something similar because simply I have many mp3 files that are the same but with different bitrate,ID3 tags,filesize
View 1 Replies
View Related
May 24, 2010
In a few hours I'll have a new 500GB Sony laptop, filled with the usual Sony rubbish which I'll promptly be replacing with Ubuntu or Crunchbang or something. However, first I want to make a full clone of the drive (including recovery partitions), should I wish to return it to Sony or sell it on in its factory state.
The problem is that the only backup drives I have are less than 500GB - the biggest I have is 250GB or so! So I need to backup and compress on-the-fly.
What's the best way to do this? Presumably dd piped into gzip would do the trick, or does anyone have any other suggestions to accomplish this?
View 3 Replies
View Related
Jun 14, 2010
How can I delete Directories which are smaller than, say, 1000 KB?
I already have a file list from the command:
But I don't know how to proceed.
Update:
The output of:
Is something like:
View 2 Replies
View Related
May 31, 2011
How I need to modify SPEC file to create two RPM packages instead of one big?
View 12 Replies
View Related
Sep 16, 2010
One thing that I didnt like about gnome is the huge gtk+ interface and controls. Everything is so large.
Is it by design? Or I can make the overall interface smaller by some tweaking? If so then how? This question arose while I was using eclipse in fedora gnome.
View 1 Replies
View Related
Jul 10, 2010
I need to clone a 160GB hard drive with Linux Mint 9 (not more than 10GB used) to a 30GB SSD that is partitioned carefully (aligned to cylinder boundaries) and is currently running Ubuntu (which I wish to overwrite with Linux Mint 9). The SSD has a /boot partition, / and swap. The source (160 GB) does not have a separate boot partition. Can anyone help me fill in the steps below? /dev/sdc will be the source (160GB) and /dev/sda is the target (with partitions 1,2 and swap on 5).
make a copy of /etc/fstab from the target drive before proceeding. Ready the target partitions. Can I reuse the existing destination partitions on the SSD? Ready the filesystems on each of the target partitions. /boot is ext2, / is ext4 and swap is already set up too. As I said, all contain data (Ubuntu) that I wish to overwrite. So what steps are needed here? Do I need to erase anything (files, etc.) before the copy/clone? next, use dd to copy MBR (right?) And exclude partition table:
Code:
dd if=/dev/sdc1 of=/dev/sda1 count=1 bs=446
Mount the source and destination drives:
Code:
mount -t ext4 /dev/sdc1 /mnt/source
mount -t ext2 /dev/sda1 /mnt/boot_target
mount -t ext4 /dev/sda2 /mnt/root_target
I suppose I can leave the swap partition on the target untouched. Copy the files from the source partition to the destination
Code:
cp -a /mnt/source/boot /mnt/boot_target
cp -a /mnt/source/ /mnt/root_target
then I assume I go to /mnt/root_target and delete the /boot directory, right? Change /etc/fstab to reflect the new partitions. I mount by label. Will my partition labels be intact after this? Do I have to make any changes to GRUB? Anything else?
View 14 Replies
View Related
Aug 18, 2011
I'm looking for a way to compress a large file (~10GB) into several files that wont exceed 150MB each.
Any thoughts?
View 2 Replies
View Related
Sep 1, 2011
Tool like Media File Segmenter for Linux
I know that one can use ffmpeg to extract a smallfile.avi from a largfile.avi. But What I am looking for is an tool/command to split a large file into several files of a given size.
View 1 Replies
View Related
May 28, 2010
I've decided that I want to use another, smaller, hard drive for my OS and I'd like to clone /dev/sda onto /dev/sdc. I want it to be an exact clone except my partition for my "/home" will be smaller (since there's not room for it). I was gonna try with dd but I'm not sure if I should build the partition table and use dd-command on one partition at the time? Will this then include GRUB boot loader and will it be working properly?
Do I have to clone the disk completely for it to boot properly? I'm not sure how or where GRUB places itself on disks as you install it. Can I perhaps copy the partitions one by one and then install GRUB from CD afterwards? Should I leave some unallocated space somewhere in between the partitions as I build and clone them?
View 4 Replies
View Related
Apr 7, 2011
1. How sum of system time and user time can be greater than real time ?
2. Even though my program is not waiting for any I/O the real time is smaller than system time as shown
root@chaitu:/home/chaitu/Desktop/Chk# time ./new
real0m0.001s
user0m0.000s
sys0m0.004s
View 4 Replies
View Related
Apr 14, 2010
I have a Logitech ambidextrous trackball, with a left and right mouse button. The trackball device also has two smaller left and right buttons. I'd like to know how those two smaller buttons are addressed. Ultimately, I'd like to assign certain keystrokes to them, to make work faster. For example, ALT+<right arrow> moves a browser back one page. how to name these keys, or whether/how I should address this USB mouse. FWIW, I'm actually using it through the PS/2 mouse adapter, since that doesn't take a USB slot.
View 1 Replies
View Related
Feb 8, 2010
And we are unable to restore the setting because the button to click on to do so is outside of the viewable screen! Also we have lost the start bar/dock at the bottom of the screen and cannot figure out how to get it back.
View 1 Replies
View Related
May 19, 2011
I recently installed Linux Mint Julia 10 on my netbook and it is great.no issues from USB install.My question is what is a smaller distro I can use for netbook...and will it install as easy as Mint 10.I only use netbook for emails and web searches for information..I have no harware issues ..except for my lack of knowledge of Linux.
View 14 Replies
View Related
Mar 1, 2010
I want to set my editor's font as Monaco-11, but it has no anti-aliasing effect. And when I set it to Monaco-12, anti-aliasing effect works. How can I make it also work for Monaco-11? I'm using Ubuntu 9.10
View 1 Replies
View Related
Jul 20, 2009
KMail 1.11.4, KDE 4.2.4: I'm migrating from WinXP to Mandriva, and installed KMail at the weekend. Works fine, but I have a niggle - the message list displays headers grouped by month order. I'd like the option of having a simple list (no groups), and suspect that it could be done - but I haven't been able to find out how. I've checked in the Handbook without success, and a search in LQ hasn't turned up anything yet.Any suggestions gratefully received. If this isn't the right place for a KMail query,
View 1 Replies
View Related
May 4, 2011
I got a new hard disk for my laptop and I want to move my Gentoo installation from old HDD to new.
Most simple guides recommend use of dd to copy the whole partition byte by byte.
I'm moving to the new drive because I don't have enough space on the old drive, so I don't want to simply clone the partition. Instead I need the destination partition to be bigger. Would dd work well in that case?
Assuming that I use same partition types on the new drive, would I be able to use simple cp with appropriate settings?
View 1 Replies
View Related
Sep 14, 2010
I cannot reduce the size of all icons, context menu items etc.For example, I need to do some minor programming for the university. And this is how Eclipse Aptana RadRails look on a netbook: [URL] UI takes up to 70% of screen space, and the IDE is barely usable now. On Windows it looks like [URL] I tried some gnome themes but they all are of the same size. Is there any way how I can reduce the size at least for the whole system (nautilus etc)? If there is a way how I can apply 'nanoized' theming for desired applications only.
View 4 Replies
View Related
Jan 26, 2011
this might be a silly question, it might not. I need to send upload some documents (scans) I have onto a website, and there is a limit to how large the pdf can be. (7MB) The file I have - and I can upload only one - is about 10 MB. Is there any command with which I can make this pdf smaller without compromising the resolution too much
View 5 Replies
View Related
Apr 30, 2009
Hi I am running a fedora 10 desktop. when i send an email using evolution the message was not sent but returns a error message:"Error while performing operation.DATA command failedError: 550 Viagra SPAM - Hi in Subject" and the message did not have an attachment just plain words. what might have gone wrong for i have been using this for sometime without a problem. or what security measures should be in place to remove this viagra spamAm I infected by virus on this fedora, all my updates are up to date.
View 1 Replies
View Related
Nov 10, 2010
Im trying to instal Sun Virtualbox but when download completes and I click on install I get the following error>>Message did not receive a reply (timeout by message bus) I wont even bother with this software if there are others out there that are as easy to use. I used it on Windows and thought it was great ! (thats how I eventually switched to Linux, by using it virtually at first)
View 5 Replies
View Related
Mar 16, 2010
My parents bought a new hard drive for a laptop that I've owned for several years. It's much larger than the current one, so I plan on splitting it up to dual boot it with Ubuntu.I have no problem with partitioning a drive (I always keep a LiveCD handy), but my question is this: how can I go about moving the existing partition to the new drive? This is a laptop, so I can't simply plug the new drive into another slot.
Also, even if I manage to move it, will Windows still work on the new drive in a larger partition? I've had this laptop for quite a while, and I've lost the recovery discs that came with it a long time ago. I also have a lot of software without CDs to reinstall them with. This makes not reinstalling Windows a high priority.
View 3 Replies
View Related
Jul 5, 2011
I have an ISO of a game I own that shows up as 5gb. When I mount the ISO like this:
mount -t iso9660 -loop game.iso /mnt/loop
and go to /mnt/loop and execute
du -hs
it returns 2.5gb. Examination of all the files and directories in /mnt/loop does indeed add up to 2.5gb. So my question is what happened to the rest of it? Does the 5gb ISO contain a bunch of empty space? Should I try to burn it to a DVD and see what happens or should I burn it to a dual layer disc? I don't want to waste a dual layer disc if I don't have to.
View 13 Replies
View Related