General :: Modify Another File And Not Actually Hold Information?

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


ADVERTISEMENT

General :: Modify A File That Contains \ Using Sed Or Awk ?

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

General :: Grasp The Proper Way To Modify The Sudoers File

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

General :: How To Modify Line Of File Using Shell Script?

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

General :: Modify .bashrc File To Change The HISTSIZE?

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

General :: Modify The Only One Pattern Among Two Patterns In A Text File?

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

General :: Modify A File Like /etc/gdm/custom.conf From The Shell Or A Script?

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

General :: Modify The /etc/host File - Change Directory Fails?

Feb 1, 2010

I am in the process of setting up an Asterisk server with Broadvoice services. I am having issues with making outbound calls and Broadvoice suggests I modify the /etc/hosts file in order to add their proxy server IP address and name. I login to my server as root and get the following command line header

[root@root tmp]#

I entered cd thinking this is what I need to change directory but fails. What is the command I need to enter in order to get to the /etc/host file so I can change it? How do I confirm an /etc/host file even exists?

View 2 Replies View Related

CentOS 5 :: What Size LVM Volume To Hold A 32GB File

Apr 7, 2011

How big should an LVM volume be to hold a single 32GB file? I thought 33GB would be enough, but apparently not. A volume has run out of space. There are 2 identical volumes holding identical sized files (kvm virtual hard drives in raw format). One (ic030) is showing zero free space and one is showing 97% full. I guess the discrepancy is caused by journalling, directory structure information etc. Possibly also sparseness. How do I calculate the worst-case maximum required LVM volume size? i.e. assuming no sprseness and maximum journal size etc. Here's some info from the file system. (I have removed other volumes form the listings.) The volumes are formatted with ext3.

[Code]....

View 5 Replies View Related

General :: How To Get File Information In 'less' Like With 'man'

Jul 31, 2010

When I view a file in Linux with the 'less' command, I often only get a ":" prompt in the bottom left corner. There's no clue about how long the file will be, or at which location I am currently. When reading manpages with 'man', there's a file title and line number in that corner. And once I hit the end of the file, there's even a percentage shown. I've learned about 'less -m' but it's not that powerful. So what does 'man' differently from 'less'? They appear to be the same viewing programme, except for that file information difference.

View 7 Replies View Related

General :: Get Under Information About Windows EXE/DLL File?

Nov 2, 2010

How to get under linux (without Wine) such information about Windows EXE/DLL file:

CompanyName
FileVersion
ProductVersion

[code]...

View 11 Replies View Related

General :: Compare Two File - Information About Software ?

Nov 16, 2010

I have many files with info about soft, installed on remote machines.

I need to compare this file with template (soft than must be installed) and output file must content info about software that's not installed.

Code:

Code:

output must be software_name2, becouse it is not installed, but software_name3.2 is good enough becouse version is more than we need.

So, the task is to show lines that is in template and not in source, using simple regular expressions

I use grep

Code:

or

Code:

But it shows me only lines that is in source and not in template etc...

View 1 Replies View Related

General :: Add Some Starting Information In A File While Creation?

Apr 7, 2010

I want to add some starting information in a file while creation. like if I type vi test.sh

then
#!/bin/bash
will be added automatically.

Somebosy suggest me how to do this ??

View 22 Replies View Related

General :: Best Console Tool To Explore Sound File Information?

Jul 12, 2010

Im looking for console tool that will output most detailed information about sound file (particularly mp3). Tried to use different tools (id3, lame, ffmpeg)

View 4 Replies View Related

General :: Windows - Find In-depth Information On Various File Systems?

Apr 28, 2011

Back in the old days of PC-DOS 3.1, computers are much simpler than today's. I can learn a lot of how File System works with tools like PCTools, Norton Disk Doctor, and [URL]. Have been working exclusive in corporate database application area for over a decade, my knowledge of how these stuff work is diminishing. Standard-clean OS (Windows, Linux) installation is all I can do now. And it starts to cause me many data-loss troubles, when I have to perform something that I don't have much insight, such as install and remove peer linux os or move and resize partitions.

I'm looking for books, web resources, or communities where I can educate myself on how various file system works, for which I can have in-depth answer to questions such as:

How to remove ubuntu and grub2 ? (I recently did that, but with a lot of frustration when I was not really sure what I was doing and confront with some scary error message like "Missing BootMgr" What kind of disk-partitioning operation can be performed non-destructively, and why ? What is Active partition ? Primary Parition ? Extended Partition ? How it stored on the disk. There are many free partitioning tools out there, which one is safe to used ? NTFS, Ext3, Ext4, .. What the differences ? How to choose it wisely.

View 2 Replies View Related

General :: Writing A Script To Parse Information From A Text File?

Apr 29, 2011

Go to a specified directory and open a log file and parse out specific information and dump it into another text file.

View 4 Replies View Related

OpenSUSE Network :: Add Few Lines To Php.ini File And Modify Suhosin File?

Dec 29, 2009

Is installing "php5-suhosin" from yast and restarting apache enough to make suhosin work out of the box? Or do I need to add few lines to php.ini file and modify suhosin file?

View 3 Replies View Related

General :: How To Hold I/O Requests

Mar 23, 2011

I need to quiesce a VM manually and for that I need to somehow pause VM and hold incoming I/O requests.

View 3 Replies View Related

General :: Remount Root Filesystem As Read/write After Modify Readonly-root File?

Dec 21, 2010

My linux distro is CentOS 5.3. Today I edited /etc/sysconfig/readonly-root and set "READONLY" to yes, now my /etc/sysconfig/readonly-root file is like this:

# Set to 'yes' to mount the system filesystems read-only.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs

[code]...

View 3 Replies View Related

General :: Bizarre "Modify" Value Of A File?

Feb 27, 2010

Yesterday,I downloaded(17:29 hrs) wget by update manager in /var/cache/apt/archives .I will show you the stat details for that file:

File: `wget_1.10.2-3ubuntu1.1_i386.deb'
Size: 237758 Blocks: 480 IO Block: 4096 regular file
Device: 808h/2056d Inode: 729990 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2010-02-25 17:29:53.000000000 +0530

[Code]...

View 1 Replies View Related

General :: Make NIS User Information Override Local User Information On Client Systems?

Jul 30, 2011

How would you make NIS user information override local user information on client systems? This is what I think is right? Add nis on the passwd registration file on the second line Is this correct?

View 1 Replies View Related

General :: Recursive Search For Files That Hold Some Specific Text?

Jan 18, 2011

How do I recursively generate a text file which has a list of all files on my server which contain a specific string anywhere in the files?

I know the following command can be used to replace a string recursively

find /var/www -type f -print0 | xargs -0 sed -i 's/old string/new string/g'

I do not want to replace the string, I just want a list of all files which contain the string.

View 4 Replies View Related

General :: Viewsonic Vg920 Monitor Won't Hold Settings In Fedora 12

Jan 28, 2010

I've got two computers, with the mouse, keyboard and monitor connected through a Cybex Switchview switch. When I connect the viewsonic vg920 directly to the linux box, I can set the resolution using the System menu. However when I connect the linux box to the monitor through the switch, linux somehow cannot detect what the monitor is and resets the resolution to a much lower setting. How can I make the monitor settings in Fedora 12 permanent, so that when I connect to the monitor through the switch I keep the higher resolution?

View 2 Replies View Related

Ubuntu :: Find The Dependent Information Like That In The Control File Of .deb File?

Nov 17, 2010

As I know, lly includes a control file. Takelibfreetype6_2.3.9-5ubuntu0.4_i386.deb for example, its control file includes the following content:

Package: libfreetype6
Source: freetype
Version: 2.3.9-5ubuntu0.4

[code]...

View 2 Replies View Related

General :: Make Ncftp Hold The Connection Open Longer Than The Default ?

Jan 18, 2011

Is there a way to make ncftp hold the connection open longer than the default? a ping every 10 sec or something? I feel like after I push a change up to the server before I can verify everything is working as expected and get back into ncftp the connection is closed by the remote host.

View 1 Replies View Related

Debian :: Modify The File Grub.cfg?,

Mar 24, 2011

how modify the file grub.cfg?, is for 6.0, the grub2.

View 14 Replies View Related

CentOS 5 Server :: How To Modify PAM File

Jan 15, 2010

Whenever I modify my pam file as shown below I can no longer log into my centos; I have to go into single user mode and undo the changes. What I want to do is log all failed authentication attempts but I don't want it to affect the root user account.

# vi /etc/pam.d/system-auth
auth required pam_tally.so no_magic_root
account required pam_tally.so deny=3 no_magic_root lock_time=180

View 1 Replies View Related

Fedora :: Setup The Vim And When Modify The Vimrc File?

Apr 20, 2011

I just setup the vim,and when i modify the vimrc file ,I obviously made some mistakes ,the error looks like this and this is where the problem is and why my user name is so long ,is there anyway i can make it shorter or use others

View 8 Replies View Related

Programming :: If Modify Tcp.c Stack File And How To Compile

Nov 4, 2010

i have just modify tcp.c file in/usr/src/linux/net/ ipv4 location.Now should i compile the complete kernel?if not then how to compile that net/ipv4 package or etc.

View 1 Replies View Related

Programming :: Run Script To Modify Text File?

Mar 20, 2010

I have around 600 empty text files that I need to add the name of this file as part of the data, I mean files from "file1.txt to "file599.txt, all of them empty, and I need to get the name inside the file, so, when I open the file show the name as part of the data "file1".

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved