General :: How To Modify Rm Command
Jun 22, 2010
When we execute rm command then the target files or directories are permanently removed from our computer.
Is there any way my which when we execute rm command then the files or directories moved to Trash.
View 13 Replies
ADVERTISEMENT
Mar 20, 2010
this is the output of df command on my system
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda8 18073924 4911628 12244184 29% /
udev 642140 308 641832 1% /dev
[code]....
View 14 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
Jun 13, 2010
The output of a command changed and I need to extract the data and print it out in a different fassion:
Code:
abcd1=aaaa xx
abcd 2 aaa xx bbb
abcd2=aaaa xy
ab 2 xx aaa bbb ccc xxx
should be transformed to:
[Code]...
Currently I used sed "search1|search2|search3" to get the lines that need to be transformed. But I also need to search for substrings in those lines and I need to print those substrings in a specific order together with other characters. How is this done with sed?
View 7 Replies
View Related
Jan 21, 2010
How do I get thread_info for a given pid? Is there a way to modify PC of thread A in thread B so once thread A is scheduled, it will jump to the new instruction?
View 2 Replies
View Related
May 13, 2010
I need to modify a file that contains \tsus.fbfs.comappsdataStormLossProduction and replace the \tsus.fbfs.comappsdataStormLossProduction line with rm -f /mnt/nfsvol/PC/SLR/
I have tried:
But it provides an error on the second . I need to change this in place and not redirect to another file.
Is this possible? I have used sed and awk before but not extensively.
View 7 Replies
View Related
Dec 29, 2010
I am going to install the newest version of Ubuntu on my computer. I am currently running Vista. I would like to be able to dual boot. I understand the whole partitioning deal and booting from the cd but i am worried that doing so will overwrite my Master Boot Record for windows. Do I need to modify the GRUB2 after installation. Read many writeups but was hoping for some input.
View 1 Replies
View Related
Feb 22, 2010
It is very important for my research work. For example mydata.txt:
id type x y z
1 6 0.474611 0.227223 0.583947
2 4 0.422894 0.22726 0.536791
3 5 0.448963 0.200148 0.560336
4 3 0.386478 0.207721 0.515293
5 6 0.371617 0.22361 0.582206
6 4 0.32123 0.222999 0.534782
How to change second column (type) whose values are 4 and 3 to value 1, so that mydata.text file become:
id type x y z
1 6 0.474611 0.227223 0.583947
2 1 0.422894 0.22726 0.536791
3 5 0.448963 0.200148 0.560336
4 1 0.386478 0.207721 0.515293
5 6 0.371617 0.22361 0.582206
6 1 0.32123 0.222999 0.534782
View 6 Replies
View Related
Apr 20, 2011
I have set up a local YUM repository to install own modify packages om my clients.
View 2 Replies
View Related
Nov 3, 2010
How can I modify my grub menu? I remember that on openSuSe was /boot/grub/menu.lst. But in debian there isn't it. In ubuntu is the same for modifying grub menu?
View 1 Replies
View Related
Aug 10, 2009
I m pretty new to Linux..! I've been given a task to modify network protocol(TCP in particular). So now i've to make few changes to the kernel which includes modifying few source files. So i want to know how can i go abt it. Till now i've explored various .c files of kernel(Eg.tcp.c,tcp_input.c etc etc)by referring few books. And now comes the important part of implementing it. So how exactly can i go abt it?? I went thru various threads like installing a kernel,compliling a kernel and other things. But i m not getting the exact sequence in which i should do it. I've installed fedora 10. But i cannot see any source files which i can modify. Where and how can i modify these files?
View 5 Replies
View Related
Jul 28, 2011
I want to use awk to modify file like this
origin:
A[]A[][]A[]A
modified:
A[]a[][]A[]A
but when I use
awk '{$2="a"; print $0}' inputfile
the output is
A[]a[]A[]A
where the [] means space. This is not what i want. I guess that is because the OFS is one space by default, but i really don't know how to solve this.
View 11 Replies
View Related
Nov 12, 2010
anyone know network packet editor for Linux? or modify network packet in wireshark?
View 1 Replies
View Related
Feb 16, 2011
Why is the info in the (BASH_Profile) file different than (echo $Path). Is the Profile file just there to modify another file and not actually hold information?
View 1 Replies
View Related
May 1, 2010
How to modify kernel to non-preemptive process scheduling only. Suggest any site that provides this kind of source code.
View 1 Replies
View Related
Apr 7, 2010
i want to change appearance for terminal in genome in ubuntu 9.10 permanently..like i want to add this line in white space each time when the terminal get started..
**********************************************************
Welcome to you
**********************************************************
how can i do this permanently
View 5 Replies
View Related
Jul 28, 2010
how to edit/create modules.dep.bin under initrd image. I actually want to insert a new module within the initrd image of suse 11 with sp1.
View 1 Replies
View Related
Apr 4, 2011
Where could I modify the konsole terminal setting?
I would like change my default setting in the terminal.
My current terminal konsole is as below
usrname:machinename[line]: current_path :
I would like to shorten it because the current_path is too long and i find it quite messy...
View 6 Replies
View Related
Mar 6, 2010
Prior to upgrading some of my hardware I had 4 drives used just as storage. Now I'm trying to mount the drives as an LVM but I don't have enough slots to connect all the drives at once now b/c they use an outdated type of cable. I can connect three of the four. So, can I somehow move these to a new group, or remove the missing drive from the existing group?The error is:Couldn't read all logical volumes for volume group VolGroup.Couldn't find device with uuid 'yQtrVB-5jCk-vF10-05c2-AcDL-GNn1-ivdxxh'.
View 1 Replies
View Related
Jun 3, 2010
Relatively new to Linux, but I'm trying to grasp the proper way to modify the sudoers file. As an example, what would I have to modify in /etc/sudoers to allow a user (say 'user1' for the example) to be able to add/remove software through yum? I'm aware of the fact that I need to use visudo and how to use the vi editor. I've Googled this topic and while I've found a number of pages on the topic, I never see many examples.
View 5 Replies
View Related
Mar 3, 2010
On my Debian server I installed Samba for sharing directories in my local network. I know how to set access rights but I have a problem. I would like to allow an user (example "nobody") to create files or directories in a shared directory but to deny to modify or delete something.How can I do that?Second question, on a file, I know that we can set rights for "u", "g" and "o". But like the NTFS permissions, can we apply rights for each users?
View 3 Replies
View Related
Mar 23, 2011
I am trying to write a basic script on a linux box to do the following:change the timezone to UTC. I will need to make sure /etc/sysconfig/clock only has the following:
HWCLOCK=-u
SYSTOHC=yes
TIMEZONE=UTC
[code]....
View 2 Replies
View Related
Apr 12, 2010
I have a file like below
n
p
1
1
50
w
I need to modify the first occurence of 1 byt some other integer.How do i do it using shell script?Can anybode help me out with that?
View 9 Replies
View Related
Jan 25, 2011
I was installing a software in my Ubuntu 9.10 and after installation completed it prompted the following warning:
Warning: Your PATH does not point to your newly installed /home/pc/Reflex/software/bin/esorex.
To ensure execution of the newly installed software you should modify your PATH.
Note that "esorex" is the executable file and by typing its name in the Terminal the program starts.
What should I write in my "bashrc" as PATH to that program?
View 3 Replies
View Related
Apr 27, 2011
If I want to modify my .bashrc file to change the HISTSIZE would the following command be for example; HISTSIZE=200? And if I want to change the DEBUG_LEVEL to 8 would the following command be; DEBUG_LEVEL=8?
View 3 Replies
View Related
Nov 22, 2010
I want to replace a pattern with other pattern in a textfile. But there are two same patterns,but I need two change only the second occurence. EG:
Text file is
aaaa=1
bbbb=2
cccc=3
dddd=4
[code]....
Now I want to change aaaa=x into some other entry.
View 3 Replies
View Related
Jul 20, 2010
Filename.txt
Code:
My First Line
My Second Line
::::While Loop:::
Program:
Code:
while read line
do
echo "$line"
done < Filename.txt
output:
Code:
My First Line
My Second Line
Is it possible to use for loop to get the same output. I have tried executing below code but I get every word of my file being displayed one below above.Is there any way I can modify the for loop code to get the output returned by while loop?
:::For Loop:::
Program:
Code:
for line in $(cat Filename.txt)
do
echo $line
done
output:
Code:
My
First
Line
My
Second
Line
View 8 Replies
View Related
Jan 30, 2010
how to modify (or get rid of) the sound (music) that is played when the computer starts ? (with ubuntu).
View 5 Replies
View Related
Jun 22, 2010
I want to modify a file like /etc/gdm/custom.conf from the shell or a script.
# GDM configuration storage
[xdmcp]
[debug]
[daemon]
AutomaticLoginEnable=true;
AutomaticLogin=username;
But the idea is that I can add a line to a section and it check if the section is defined, (add the definition if not), the property is defined, let it undefine (erase the line), (and delete the section header if there is no property defined), etc...
I didn't find anything except gconftool-2 but it do not explain how to modify other files. (there is a shema file there).
there isn't a program/script to achieve this, but can easyly be made for every config file, If someone do something like that, with a little database of which markup use each file, it could become really popular.
View 3 Replies
View Related
Mar 28, 2011
I am looking an neat trick / elegant solution to manipulate / modify hostname and set a variable to the value inside a script.I have figured what I want to do.I just want to know how to set the variable correctly ?
View 1 Replies
View Related