General :: Command Syntax Ignore Remaining Portion After Space?
Jul 14, 2010
I'm currently studying for my Linux+ test and I'm getting conflicting information regarding the rm -rf command. Yes, I know this a dangerous command, but my question is in regard to how the command functions. In one book I'm studying it says that rm -rf / home/myfolder (there's a space in there) will delete the entire root directory because there is a space between the root and home directory. It says that if there is a spacing such as this, it will ignore anything after the space, so in this case, it would delete the root directory and stop, not that there would be anything left anyway. Then in another book I have, it says that if you did a rm -rf folderName / (with the intention of adding the trailing slash to indicate it is a directory and not a folder) it will delete everything in folderName (assuming it's a child directory of your pwd) and then CONTINUE on and delete the root directory. Now, those two statements contradict each other. When you remove a directory, does the command line ignore anything after a space or not?
View 1 Replies
ADVERTISEMENT
Jul 25, 2010
I have 160gb laptop. i installed vista in c primary partition which is 25gb and installed ubuntu in d primary partition which is 20gb. A remainig for my data. Now i tried to install CENT OS by formatting ubuntu. I inserted CENT OS DVD and restarted and i selected to delete my /dev/sda2 which is showing 20480mb and it shown me free space. but i tried to add partion /boot of 100mb it got added. but, when i am trying to add / of 3000mb in the remaining 20380mb free space it showing an error message that no free space is available.
View 4 Replies
View Related
Aug 23, 2010
while doing FTP through command prompt, connections times out after some time remaining idle, but doing ftp through browser, connection doesn't time out after some time remaining idle... why is it so?
View 2 Replies
View Related
Feb 4, 2010
My Lpatop has a 300G hard drive. It came, as many do pre-installed with a Window OS, in this case Vista 32-bit Home Prem. I had partitioned the hard drive to give a C drive of 97.7GB (Partition 2 /dev/sda 2/Host), a partition for applications and programs, D of 48.8GB (Partition 3 /dev/sda3) and a third partition, E for Documents, etc. of 148GB (Partition 5 /dev/sda 5 media/doc), which on scanning seems to be a sub set of a partition Partition 4 W95 Ext d LBA dev/sda 4.......There is another partition, Partition 1 /dev/sda1 and is called WinRE and is of 2.80GB.All are NTFS except for the Partition 4Windows works fine and I have no problems, but when I use Ubuntu I get errors on startup. In the first instance it will not install the latest Kernal and it gives a Battery Management error in GNOME. I get Storage warning messages all the time, which I believe is the cause of the problems. See enclosed.
I am assuming that the disk space issue is in Host and or Home. Other than all the operational data and applications I do NOT use the Ubuntu filing system, rather the Partition 5 which I created solely for this purpose, so it's not a case of deleting files, it is purely how Ubuntu created itself on install and its operational requirements.The problem is resulting in no space or ability to do updates and new installs, and Kernal and Gnome issues.
View 9 Replies
View Related
Dec 13, 2010
I installed Linux Mint 9 LTS onto the family computer last weekend, everything went okay apart from today when suddenly it displays a low disk space message.
The machine has a 250Gb HDD, and has the base install of Mint, plus Dropbox and Google Chrome. (Dropbox has about 500Mb in it). That's it.
The disk usage analyzer tells me that /home is 100% full, yet when I look into each dropdown there is barely enough to make 2Gb of usage. (The most being Dropbox).
View 4 Replies
View Related
Jul 28, 2010
I am using grep to filter out directories I am not interested in like this:svn stat | grep -v data/charts | grep -v lib/model | grep -v web/picsIt seems a bit "hacky". Is there a better way to specify more than one string to ignore, so that I dont have to chain multiple grep commands?
View 3 Replies
View Related
Feb 28, 2011
I'm getting an error message that something along the lines of "volume "filesystem root" has only 25mb space remaining". How do I increase the volume size so I never have to worry about it again? This is the 3rd time I've tried ubuntu and it's sticking more and more but this has me thoroughly perplexed. I've got a 320GB HDD partitioned 3 times with a Linux partition being 7GB.
Dual booting Win7Pro.
Running ubuntu 10.10 64-bit
View 9 Replies
View Related
Mar 28, 2010
extend the size of a LVM2 volume group over the remaining free space available on a physical volume. My linux box is a Ubuntu Karmic 9.10 64bit, the 60GB hard disk has 2 win partition for about 19GB, a 1.5GB ext3 boot partition and finally a 36GB LVM partition (/dev/sda4) on which I created a volume group (volgrp) smaller 10GB than the 36GB physical volume (/dev/sda4). What I want now is to extend the size of volume group up to the end of physical volume. I tried to use the "vgextend volgrp /dev/sda4" but system answers me
with following output:
me@pc:~> sudo vgextend volgrp /dev/sda4
Physical volume '/dev/sda4' is already in volume group 'volgrp'
Unable to add physical volume '/dev/sda4' to volume group 'volgrp'.
Here the output of fdisk command:
me@pc:~> sudo fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
[code]...
View 3 Replies
View Related
Jun 18, 2010
How to tell the kill command to ignore processes if that process is not alive?
For example: 3453 is an alive process but 44534 is not.
kill -9 3453 44534
View 4 Replies
View Related
Jul 25, 2010
Transmission used to show space remaining on the drive you choose in the add window. Now it doesn't. Was this removed? I LOVED that convenience of not having to go to a separate file browser or terminal to show space. I tried posting at Transmissions forums but it's been 4 days with only 7 views and no reason to bump b/c the forum is so slow I'm still on the front page.
View 2 Replies
View Related
Sep 26, 2009
I have a program I use, rrdtool. I need to modify a ds value on every file at the same time. However, using a wildcard (*) to try this operation of all files does not work and instead only updates one file.
Here is the command syntax:
rrdtool tune <file> --maximum traffic_in:100000000000 && rrdtool tune <file> --maximum traffic_out:100000000000
So, how can I do this on every file in the directory?
View 5 Replies
View Related
Dec 21, 2010
How to print a sequence of line say line number 10 to 20 of a 50 line file ?
View 6 Replies
View Related
May 10, 2010
I installed Ubuntu using Wubi in my PC. Now my PC always warns me that "The computer has only 46 MB disk space remaining." My PC has 160 GB of memory and I have used a total of 50 GB so far. Thus, I should have 110 GB of disk space remaining in my hard disk.
View 3 Replies
View Related
Aug 31, 2010
I am repeatedly getting error:
I need to pass the value of:
I am using #!/bin/bash
This command works on shell without any issue.
View 8 Replies
View Related
Mar 7, 2011
When ever i open vim, i get the error that the following error: E484: Can't open file/abcd/configFiles/vim/syntax/syntax.vim There was a .vimrc file in my home folder that i have removed.
Still i keep getting the same error. Presently in my home folder there is no .gvimrc or .vimrc file.
But still i keep getting the same error. I am not too sure where this file is mentioned.
Background info: The SHELL has been changed from tcsh to bash Earlier i had created a .vimrc file in tcsh, i have removed the .vimrc in bash SHELL.
View 1 Replies
View Related
Aug 14, 2010
This morning, my hard drive looked something like this - Windows Vista on a partition of around 100 GB (NTFS), Ubuntu 10.04 (ext3)on a partition of around 80 GB, 4 GB swap and a partition of around 40 GB (NTFS) containing videos and music and stuff like that. I wanted to resize the Ubuntu partition to around 30 - 40 GB and add the remaining space to the 40 GB partition.
I successfully reduced the Ubuntu partition using the Partition Manager app that comes with Ubuntu, but I was unable to add that to the NTFS partition. After a merge failed, I was no longer able to access the 40 GB partition. I tried restoring that with testdisk, and now I can't access anything! GRUB fails to load, and when running from the live CD of 9.04 (only version I had on CD) my Ubuntu partition and 40 GB data partition no longer shows up. I have over a 100 GB of free space instead.
I'll be extremely grateful For the record, I had an external drive plugged in while running testdisk.
View 9 Replies
View Related
Apr 20, 2011
I am a Novell (now defunct) CNE tring to learn Linux and am having a lot of trouble finding out where the WB 6-6 is wrong in the syntax for adding local4... the the syslog-ng config file. In the instructions there are discrepancies between commas and simi-comma, they are both in the statements in no particular order. there is no pattern to them. Here is what the book shows:
filter f_local4debug { level(debug) and facility(local4); };
When I try to input this in the Gnome terminal window to try and find out where it goes wrong I get the following: -bash: syntax error near unexpected token "(" If I can get the correct syntax I belive I can use the info to get past the rest of this portion of the lesson. I am desperate to learn Linux as the only jobs out there for a Novell CNE are migrations to MS, which really sucks, since MS really really sucks.
View 1 Replies
View Related
Dec 12, 2010
I have a laptop of which a large part of the screen is broken (shows garbage). Fortunately the broken area is a clean rectangle, the bottom 1/3 of the screen or so.
The laptop is running Ubuntu 8.04, but I plan to reinstall it with 10.10. The graphics are provided by an Intel 915GM or something in that direction.
Knowing this, do you know of a way to tell the system about the broken part of the screen, so it will simply not use it? I don't really care whether it's done at the hardware, X or window manager level, though as low as possible is preferred.
View 1 Replies
View Related
Mar 14, 2010
Code:
x = self.spinbox37.value() * 40
y = self.spinbox38.value() * 40
[code]...
View 1 Replies
View Related
Jun 25, 2010
We use a SLES 10 SP2 file server. This file server has all type of files. We want to know what is the amount of space used by mp3 files. What we need to know is the total space in disk of mp3 files. I've been testing du command, and find command, but with no satisfactory results. Does anybody know how to do this?
View 11 Replies
View Related
Jul 13, 2011
I am running the command on a Mac but due to it being a generic unix command and a command line query.. I thought I can write on this forum.. I am running the command
Code:
df -h | grep '/dev/'
I get
Code:
/dev/disk0s2 389Gi 62Gi 327Gi 16% /
/dev/disk0s3 76Gi 24Gi 52Gi 32% /Volumes/Backup
/dev/disk3s2 500Gi 47Gi 453Gi 10% /Volumes/Misc
Note the huge space between the 1st and 2nd Column..
This is because currently I have some NAS drives mounted which are not showing due to grep. When they are not mounted. The output is fine with equal spaces between each column (like between col 2 and 3.. or 3 and 4). I want to do a (dare I say) sed or awk or something to reduce the space between 1st and 2nd col. So that it has space like between col 3 and 4.. or 2 and 3. This is because I am showing this output somewhere and because of the space its not showing up correctly.Also I hope the command will still work when the NAS drives (afp) are not mounted.. basically consistency. The spaces are not showing properly in the quote tag. Changed it to CODE tag.
View 12 Replies
View Related
Jan 4, 2010
Logical Memory Space of 4GB is divided in to 3GB User Space and 1GB Kernel Space. Always. Correct?
1. How can we change it? (just changing value of PAGE_OFFSET is okay?)
2. If system have only 256MB of memory (embedded system) and suppose Kernel Modules eat away all the memory during boot. User space will be left will no memory. Is this case possible?
View 2 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
Mar 24, 2011
I have a debian linux on my server. My disk space is only 10GB. When I check the space usage with discus program, it says:
Mount Total Used Avail Prcnt Graph
/ 9.39 GB 8.30 GB 1.10 GB 88.3% [*********-]
+ib/init/rw 124.3 MB 0 KB 124.3 MB 0.0% [----------]
/sys 0 KB 0 KB 0 KB 0.0% [----------]
/dev 120.1 MB 92 KB 120.0 MB 0.1% [----------]
/dev/shm 124.3 MB 0 KB 124.3 MB 0.0% [----------]
But when I use this command:
du / --max-depth=0
It says:
1860864 /
Why the stats of discuss is not like du command?
View 5 Replies
View Related
Aug 6, 2010
I am trying to find out can I use the ls command to list my wav files in such a way that it follows this format: <OPTION value="/home/filepath.wav">My first file </OPTION> I would like to know if there is a way I could simplify this because I have about 100 wav files. They all have names and if I could get them listed then a space then the name again with something behind it I could use the find replace feature to generate a bunch of links . If not is there a script out there that could use this format to generate links under this format? BTW this is for a pull down menu that would control windows media player
View 8 Replies
View Related
Jan 20, 2011
I am just starting to learn to script and I need to know what this doesn't work, here's the error I get:
"chmod: command not found"
The error goes away when I delete the line with "dirname $NAME" in it.
#!/bin/sh
echo "enter file name with extension and path"
read NAME
FULLPATH=`dirname $NAME`
OPENFILE="open "$NAME
OPENPATH="open "$FULLPATH
echo $OPENFILE > /Users/admin/Desktop/tmpLink
echo $OPENPATH >> /Users/admin/Desktop/tmpLink
chmond +x /Users/admin/Desktop/tmpLink
View 2 Replies
View Related
Jan 25, 2011
There is a syntactical feature I would like to see in Vim, and so I thought to write myself a syntax file for my needs, but I am having trouble finding the exact type of syntax highlighting I want to incorporate'emulate. Currently in Vim, from the terminal instead of say gvim, when I place my cursor over a parenthesis or brace, the corresponding brace or parenthesis will highlight, or block its character. In my case, instead of a single character they will be full words specified within the syntax file.
I want to do something similar. For example if my document has three words:
Group
Element1
Element2
I want the syntax file to tell Vim that when I have my cursor over the word Element1 or Element2 that Group will become highlighted. In the same, to have the cursor over Group will cause both Element1 and Element2 to highlight. I have looked here but understanding still eludes me: [URL]. I would also be happy with creating some sort of command input, where I type in the group name and the elements highlight. Like a very specific search function that searches for only and all instances that are contained within the group named.
View 4 Replies
View Related
Jun 12, 2011
I long while ago (when I was in collage) I used VIM a bit. I have not used it since and would like to get back into using it. I remember there being a way to split the screen within VIM to show common commands on the bottom portion of the screen. I've searched a while and cannot find how to set this up.
View 1 Replies
View Related
Jul 19, 2011
Upon installing Debian, it asked me if it can use a mirror to get updated packages. I said no, yet it ignored my command and fetched packages. Why did Debian disobey me?
View 12 Replies
View Related
May 11, 2011
ulimit -a tells me I have a limit of 1024 open files, which is the default on my distro. Is there a way to show how many of these are currently used, or how many are remaining?
View 1 Replies
View Related