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


ADVERTISEMENT

Ubuntu :: Set The Bash_history Size When Using The .bashrc File And Setting The "HISTSIZE=9000" Doesn't Work?

Jun 18, 2010

How do you set the bash_history size when using the .bashrc file and setting the "HISTSIZE=9000" doesn't work?

View 9 Replies View Related

General :: Can't Change Permission For Bash.bashrc File?

May 28, 2010

I tried following the example from here (http:url]......)Open up publicity.html for reading and writing by anyone.

Before: -rw-r--r-- publicity.html
Command: chmod og=rw publicity.html
After: -rw-rw-rw- publicity.html

Here's my terminal session:

username@ubuntu:/etc$ -rw-r--r-- bash.bashrc
-rw-r--r--: command not found
username@ubuntu:/etc$ chmod og=rw bash.bashrc[code]....

View 2 Replies View Related

General :: Modify My PATH In Ubuntu Bashrc For A Software

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

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

Ubuntu :: Can't Delete - Modify .bashrc / Enable This?

Apr 18, 2010

Rm: cannot remove `.bashrc': Operation not permitted

* ALL other files in /home/admin directory are able, only this one.
* can't even change own, grp, just nothing
* no matter if i'm doing it from root or admin

inside this file there is code...

View 9 Replies View Related

Red Hat / Fedora :: Cannot Modify Grub Menu File - Need To Change Boot Order

Mar 3, 2009

I recently installed a 64-bit version of centOS 5 alongside a 32-bit version, which I use. Turns out the 64-bit version absolutely will not boot and I'm stuck with it as my default boot option. Since the grub being used resides on the 64-bit half, I cant edit the menu file but I know theres a way to do this without it, through grub itself. I have about 29 render nodes now with this problem, and whenever they need to be rebooted I have to hook a monitor up to each one and hold its hand through the boot process. How to change the grub menu through grub itself, basically just change the default boot option and then have it stay that way?

View 5 Replies View Related

General :: Deleted .bashrc File Accidently

Apr 11, 2010

I accidently deleted my .bashrc file. I am a Debian user.Wat should i do??

View 7 Replies View Related

General :: Use Environment Variables In The .bashrc File?

Apr 16, 2011

I am trying to include my directory /usr/sbin in it's serch path for executable files using an environment variable. Would the input be: PATH="/usr/sbin"? And also upon start up, my shell should create the PRINTER environment variable which should resolve to the word sales...would that input be: PRINTER="sales"? If someone could help me with these two questions,

View 3 Replies View Related

General :: Get Path Of Sourced Bashrc File?

Feb 11, 2011

I want to assign the path of a sourced sub.bashrc file to an environment variable. E.g. if I type (or execute) from a known relative location

$ source ../../someDir/sub.bashrc

the sub.bashrc should set a variable like

export MyOwnLocation=/home/user1/unknownlocation/someDir

The problem is I can't use $0 as reference because the script is only sourced not executed. I also don't want to hardcode the path because the location might change and there will be more copies. Is there an easy way to create this information from within the the sourced bashrc file? I use Gnu bash 2.05b on Suse Linux 9.

View 6 Replies View Related

General :: Joining Two Commands In The .bashrc File?

Apr 15, 2011

attending class in the Redhat Academy Website. I was wondering how can you join the two commands of cd/usr & ls successfully in the .bashrc file?

View 10 Replies View Related

General :: Script After Putting The File In Bashrc?

Oct 23, 2010

I have a problem with my script. The problem is the system keeps rebooting after I put the directory file in .bashrc. The intentional for putting the file in .bashrc is to run the script automatically after login as root, I don know why is this happen. It was working fine for the first time without putting the file in bashrc. I could break the loop after hitting the "ESC" key. would it be the script problems?

Here is my script
count=20
while [ $count -gt 0 ];do
sleep 1
echo Press ESC to break the operation
((count=count-1))

[Code]...

View 11 Replies View Related

General :: Set Path For Different Software In The Bashrc File?

Aug 24, 2010

I have installed a software and set the variables in the .bashrc file to avoid setting them everytime I would like to run te software. Now I have installed a new software and would like to do the same thing in the .bashrc file.How can I add the path to the new software directory without affecting the first software path.

View 2 Replies View Related

Ubuntu :: .Bashrc File - General Guide To Customizing It?

Mar 3, 2011

I want to play around my .bashrc file, but I can't seem to find a general guide to customizing it. I just want a guide that will show me examples and explain them in-depth.

Does anyone where to find one?

View 2 Replies View Related

General :: .bashrc File Adds A Couple Of Tens Of Spaces To The Prompt?

Sep 3, 2010

I got myself a .bashrc file off the net. I checked it beforehand, didn't detect anything bad about it. One thing that's odd about it, is that several spaces are added to the terminal command line.Screenshot:Those spaces are not put there by me. The file can be found here: [URL]..

View 3 Replies View Related

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 :: 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 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 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

Ubuntu Installation :: Where Is .bashrc File On 9.10

Feb 17, 2010

I am using Ubuntu 9.10. I was installing network simulator 2. After installation I get the following message.

Please put /home/administrator/Downloads/ns-allinone-2.34/bin:/home/administrator/Downloads/ns-allinone-2.34/tcl8.4.18/unix:/home/administrator/Downloads/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

[Code].....

My friend suggested that it is something to do with .bashrc file. I fund files like .bash.bashrc.

View 4 Replies View Related

Fedora :: Add Path In .bashrc By Commenting Out Old Path And Adding New One - Command Source ~/bashrc

Jun 14, 2011

When I add some path in .bashrc by commenting out old path and adding new one like this:

#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY

After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.

View 10 Replies View Related

Red Hat / Fedora :: Edit In Bashrc File Now Cant Execute Commands?

May 30, 2011

recently I did some changes to my bashrc file the changes are as follows
export JAVA_HOME=/usr/java/jre<version>/bin/
export PATH=$PATH:/usr/java/jre<version>/bin

now I'm unable even login to the OS.

View 9 Replies View Related

CentOS 5 Server :: Can't Edit /etc/bashrc File / Make It Possible?

Apr 20, 2010

I am having a lil headache with it.
Some time ego i edited my /etc/bashrc file to add some aliases and colours for my ssh console.
Today i had a need to change few thing but for some reason i can't edit or delete this file any more.

I am logged as root.

rm bashrc
cannot remove, operation not permitted

chown and/or chmod fails as well with "not permitted" errors.

ls -Al | grep bashrc
-rw-r--r-- 1 root root 2514 mar 31 13:05 bashrc

Any ideas what's going on?

View 2 Replies View Related

Fedora :: Change Or Modify Logon Theme Or Looks?

Feb 25, 2011

I download some gdm logon themes but I can not find the way to change it. the site is gnome-look.org

View 1 Replies View Related

Ubuntu :: 10.04 - How To Change / Modify Preferred Font

Apr 30, 2010

I want to use Sans for English and another font for Chinese. I was thinking maybe I can modify
/etc/fonts/conf.d/69-language-selector-zh-cn.conf
/etc/fonts/conf.d/99-language-selector-zh.conf
to change the order of preferred font. But I couldn't find the files and I not sure if that will achieve my purpose at all...

View 1 Replies View Related

Ubuntu :: Change User Of Apache2 - Need To Modify?

Mar 4, 2011

I am having dificulting with www-data as the user for apache2. I would like to change the user to my desktop user so that I can limit access to one unknown users. I am also having problems with my wordpress website and the permalink settings. which file I should look at modifing and what I need to modify?

View 9 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

Fedora :: Create A Shell Script File With Two Functions - Bash Scripting & /etc/bashrc

Oct 6, 2010

how come I can create a shell script file with two functions, I can execute the file, but when running declare -f, the functions are not on memory, and when invoking the function bash returns invalid. In the other hand, I can copy & paste the two functions at the end of my /etc/bashrc file.... then I can called the function by name.... and the commands within that function run on my session. here is a print of all my bash packets:

[Code]....

Does Fedora has restrictions on shell scripting? I haven't touch bash in seven years, so if things have change on it I'm behind on it, and sorry for my ignorance.

View 1 Replies View Related







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