OpenSUSE :: Command (du) To Find Out How Much Space A Directory Takes Up?
Jul 10, 2010
I learned a little bit about this command (du) to find out how much space a directory takes up but what I want to know is can you tell it to exclude directories?For instance, I wanted to know how large the / directory is on my old suse10 drive but I want to exclude /home (/home was not a separate partition on that drive).
View 4 Replies
ADVERTISEMENT
Mar 12, 2010
What's the command to know how much disk space a specific package takes?
View 5 Replies
View Related
Jul 13, 2011
I'm quite new to linux but I have configured a simple ftp server and it's working great. I have a FTP-Shared folder with upload and download subfolders. Under upload's and download's I have identical category subfolders like mp3's, movies, software etc. in both. As the guy's upload, I would like to create a line crontab where I can move all the content under /FTP-Shared/upload/mp3/* older than 14 day's to FTP-Shared/downloads/mp3/ recursively (Like in cp command), but the timestamp must be searched on the first directory and not sub files example: /mp3/Club Dance/CD1/Hallo world.mp3This is how far I got:[root@clients ~]# /usr/bin/find /FTP_Shared/upload/Mp3s/ -depth -mindepth 1 -mtime +14 -type d -exec mv -f {} /FTP_Shared/download/Mp3s/ ;This command moves the directory and files, but it is not recursively
View 4 Replies
View Related
Aug 26, 2010
If I use cd command going to a directory which has a space in its name, such as I input cd Program Files to go to dirve_c/Program Files, it will show there isn't the Program Files directory.tell me which command I can use to go to this kind of directory.
View 6 Replies
View Related
Aug 17, 2011
Is there any command in Linux which will find a particular word in all the files in a given directory and the folders below and replace it with a new word?
View 4 Replies
View Related
Feb 15, 2010
I have a dual boot system using ubuntu, 7, and vista. I want to get rid of vista. I already tried to use my recovery discs but they never give me an option as per what to partition and what not to, and it comes with vista and seven. I really need the space and can't currently afford a portable hard drive.
View 9 Replies
View Related
Aug 4, 2010
For a given directory, I want to know the space occupied on disk by it and all files and directories having it as an ancestor, so to speak. Is there a command for this in linux?
View 2 Replies
View Related
Mar 19, 2011
My machine telling me that my home directory is running out space,It is said 95% in usage.Try to delete the big unwanted files in users (just two user in my machine),df ing, but the home usage status keep on 95%.
View 9 Replies
View Related
Jul 28, 2011
I've just managed to compress my LVs, extend my VG to my new SSD, move the LVs to the SSD and remove the old disk from the VG. All is well and good (mind you, I did kill my /home partition but it's sorted now...)
My next step was to shrink the PV (I think that's what I want to shrink?) so that I can add another partition to the SSD (to reduce compile times). See below for my current setup. I have a 35G PV with LVs totalling around 33G but the "partition" of the LVM is still 58G.
Code:
View 4 Replies
View Related
Dec 18, 2010
how could one create a file that takes up a lot of space on the drive?
View 2 Replies
View Related
Dec 31, 2010
Today I was notified on my netbook that my root folder is running out of space. When I ran the disk analyzer, it showed that most of the space is going towards the videos folder in /media/win7. My ~/Videos folder is symbolically linked to the videos folder on my Windows partition, which is mounted in my fstab using ntfs-3g under /media/win7. The question now is, shouldn't the videos only exist in the windows partition? /media/win7 usage shouldn't affect space usage in my root folder right?
View 6 Replies
View Related
May 9, 2010
While booting Linux it takes ages for 'enabling swap space'
I have allocated swap space twice that of the RAM.
Is there a way to fix it? What should I do to avoid this in the future installs?
View 9 Replies
View Related
Mar 24, 2010
I have updated to FC11 a few months back and after I got my desktop effects going I notice that every time I go to my kde application launcher it takes me back to space 1. I could be in space 6 but as soon as I go to the application launcher to open a new application it takes me back to space 1 and I have to manually move the application to desktop 6. This only happens when compiz fusion is enable...
View 4 Replies
View Related
Sep 12, 2010
I am trying to use a freshly installed kubuntu 10.04.1 LTS and am having major problems with delays in command execution. The box worked fine after installation. I then brought it to the client and it was fine for another day or so. Now, most of the commands I run take up to five minutes to execute. An 'ls' or 'top' will run straight away but and 'ssh','rm' or 'sudo apt-get' will just sit there for ever:
[Code]...
A reboot changed nothing. The shutdown was immediate so 'shutdown' is another command that works properly. The load of the box is '0', I used team viewer to see if I got the same problem from the LAN side rather than the WAN. It's the same. I thought it might have been the disks that had spinned down but it would have sped up after the ssh connection. After further analysis, it looks like this could be an authentication problem. The problem shows once the ssh password is validated and when we use sudo. Could this be related to the installation of samba3?
View 1 Replies
View Related
Dec 18, 2009
I noticed that every, say, 5 times I boot CentOS 5.4, a find search is initiated that takes several hours.
For example:
find . -name rd=rmdir -print
I'm not sure if it's related, but, I do have a "alias rd=rmdir" in my .aliases. Would changing it to "alias rd=/bin/rmdir" avoid this problem? I'm using zsh. Is this search necessary?
View 14 Replies
View Related
Oct 3, 2010
I was writing a bash script which attached to another script. The issue I'm having is, when I use the exit command written in the script, it takes me back to the first script. How do I disable this?
View 1 Replies
View Related
May 25, 2010
How do I find files in opensuse 11.2 without using the command line. I see in dolphin "nepomuksearch", but it doesn't work. Even in the command line you cannot whereis a file like Monday, Monday.mp3. whereis also seems to be case sensitive.
View 5 Replies
View Related
May 23, 2011
Not sure but has support and updates for 11.2 come to an end? Every monday morning i make sure i'm upto date with updates etc. This am i get a message saying "repo not available" and having looked online to see if the directory openSUSE_11.2 exists, it doesn't.
At the same time loged in as a std user i regularily offer the command kdesu kwite. the command is accepted without error and the cursur returns on a new line as expected but kwrite doesn't start. I'm guessing that my last update has left me with a broken OS. It doesn't seem very long at all since i installed 11.2!
View 9 Replies
View Related
Nov 28, 2010
This is the following exercise:Adapt this to write a script storedList that takes two command line parameters. The first parameter is the name of a directory, the second parameter is the name of a directory should be store i.e# ./storeList.sh /etc etcFilesListHow can you refer to the variables that represent the words passed in on the command line?
My Script's file:
#!/bin/bash
if test $# == 2
[code]...
View 4 Replies
View Related
Dec 14, 2010
How can i write a shell script that takes a file path as command-line arguments.and it should report whether the path denotes a file or a directory.
View 2 Replies
View Related
Jul 12, 2010
I read this thread but
Code:
anisha@linux-uitj:~> su
Password:
[code]...
View 14 Replies
View Related
Jun 16, 2010
I am a student studying computer science course.
Well, I am facing problem when doing lab questions.
I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).
I am required to use the /usr/local directory.
In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".
Look at my screenshot at [url].
View 9 Replies
View Related
Nov 25, 2010
I am using fedora 12. I got "no space in root directory" warning from the system. When I went through it, I found many of the space has been occupied by /var/log/httpd/error-log file. So I just deleted the file but when I check the space with "df -h" command. It shows 0% availability. The same problem occurred before but it solved when I restarted the system. But how to regain the space without restarting the system?
View 5 Replies
View Related
Jun 12, 2010
I have an external 800GB USB drive I used for storage for both files from Win XP and Suse 9.0.I can read and write my data from Win XP o.k but when I try to write any files from Suse side it gave me 'read only file system' . This drive from Unix is mounted in /media directory with root owner with executable and read only. When I changed to become root and issue chmod 777 'FreeAgent Drive'.I got error chmod: changing permissions of 'FreeAgent Drive':Read only file system.
From unix, reading any file on this drive, using gui application, I can not access the drive at all but I can see all files on the drive using a command with quote (cd /media/'FreeAgent Drive')
View 7 Replies
View Related
Nov 25, 2010
I am using fedora 12. i got "no space in root directory" warning from the system..when i went through it, i found many of the space has been occupied by /var/log/httpd/error-log file. so i just deleted the file..but when i check the space with "df -h" command.it shows 0% availability..the same problem occured before...but it solved when i restarted the system..but how to regain the space wihtout restarting the system?
View 7 Replies
View Related
Sep 23, 2010
i'm using c++ and Ubuntu and I need to write/copy some files to a directory chosen by the user of my system (the user can save it on any folder of any disk of the pc or other usb device). Before I do it, I need to know if there's space available on the disk. I cannot only check the result of write() function, the validation must be executed before I start to save or copy.
I was trying to use statvsf structure, but I only have the complete filepath (/home/lobinho/myDocs/), not the disk path. The statvfs() function only works with disk path (i.e. /media/KINGSTON ).
The source of my function:
Code:
int MyClass::availableSpace(string dst, ulong* availableSize) {
int result = ERROR;
try {
struct statvfs devData;
[Code]...
View 4 Replies
View Related
Aug 24, 2011
CentOS 5.4 (Final) is installed on my VPS.I'd uploaded a zip file that contains a directory and some files that there are space in their names and now I can't do anything with them.
I can't move them using mv command
I can't rename them
I can only re-compress or delete the folder
how I can rename or move them?
View 5 Replies
View Related
Sep 7, 2010
I have 4 Linux machines with cluster.My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system remark: need to scan each file in the linux system and verify if the file include IP address if yes need to print the IP as the following
more /etc/inet/file.example1
182.23.2.4
255.255.0.0
10.10.1.1
View 1 Replies
View Related
Sep 11, 2009
I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;
View 10 Replies
View Related
Jul 15, 2011
Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.
View 2 Replies
View Related