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


ADVERTISEMENT

General :: Virtual File System Tutoral / Guide?

Sep 28, 2010

Does anyone know of a intentionally comprehensive in-dept guide?

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

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

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

General :: Customizing Toggling Between Different Languages?

Oct 19, 2010

I have a Linux system, RH Enterpise 5, that I must toggle between two different languages, one being English, but when I am in English mode I only want to get capital letters for my user programs. I can't use the Caps-lock key, because then the default key to toggle between the languages no longer works when Caps-lock is on and I need to be able to switch back and forth languages with a single key stroke. So, I need capital English letters but mixed case second language characters and a single key to toggle between the two. I can't figure out a solution for this. I have tried different mods to xmodmap, but can't solve it for both languages.Oh, slight correction, the default keys for toggling languages Alt-R and Alt-L are fine, just need upper case in English mode.

View 11 Replies View Related

General :: Read User Guide In Apt-doc On Ubuntu?

Jun 16, 2011

I just installed apt-doc package. My question is how do I read the User Guide in this package ? In general how do I use the items from a package once I install it ?

View 2 Replies View Related

General :: Looking For Very Beginners Guide To Ubuntu Server?

Feb 18, 2010

I am not averse to using the command line it's just that I don't know many commands so I need complete instructions when using the command line. I need to set up Ubuntu server at the office and I'm the dangerous IT guy that just knows enough to be dangerous but the little company won't hire a real IT guy so I do IT besides my real job, which is to usethe computers, not fix them, set them up, configure networks, servers etc.

View 3 Replies View Related

General :: Customizing - How To Create Own GnoMenu Button Themes

Feb 13, 2011

The distribution I chose came with the GnoMenu, and it's really cool that I can customize it. But so far I only know how to change the GnoMenu button itself to things that I have to download from the internet. How to create my own GnoMenu button themes? And sound themes, if you have a lot of spare time?

View 1 Replies View Related

General :: Customizing Desktop - Setting Limitations / Rights?

Sep 23, 2009

I am working on Fedora, I am trying to figure out if there is any way we can set limitations/rights to linux desktop, so that we can control which things user can access, like if i dont want user to have access to kde control center, and should not change the settings in it, or disable changing wallpaper,or disable changing screen saver. How that can be done in linux?

View 3 Replies View Related

General :: IceWM - Customizing Display Settings For Different Users

Jan 15, 2010

I have a Debian machine running IceWM. I want to set it up so when userA signs in they get a screen resolution of 1280x1024 and normal size icons and normal size cursors. Then I want it setup so if UserB signs in they get a screen resolution of 800x600 larger icons and larger mouse cursor icons. How can I customize the display settings per user with IceWM? I did not see where I can set these options in ~/.icewm/preferences.

View 2 Replies View Related

General :: How To Edit The .bashrc

Feb 27, 2011

I want something like

Code:

export ROS_PACKAGE_PATH=~/ros:$ROS_PACKAGE_PATH

to be done already for me when I open a new terminal. How do I edit the .bashrc so that this variable is always set already?

View 3 Replies View Related

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 :: 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 :: Appending To PROMPT_COMMAND In .bashrc

Sep 29, 2010

I have the following as my $PROMPT_COMMAND in .bashrc:

Code:
PROMPT_COMMAND='
if [ $TERM = "screen" ]; then
MYPWD="${PWD/#$HOME/~}"
[ ${#MYPWD} -gt 20 ] && MYPWD=..${MYPWD:${#MYPWD}-18}
echo -n -e "33k$MYPWD33\"
fi
'

I am trying to append items to my PROMPT_COMMAND in another script/on command line. If I do the following:

[Code]....

I get no error. I've echoed the value of $PROMPT_COMMAND in both cases and their output is exactly the same.

View 4 Replies View Related

General :: Echo Function In .bashrc?

Feb 25, 2010

I'd like a function in my .bashrc file that would allow me to pass text to it and echo the text to a specified file. I know it's simple as "echo 'text' >> file," but ideally, I would want to alias the function so I execute something like:

Code:
user~ $ write 'this is a test' with "write" being the function, and 'this is a test' being echoed to the file. I hope I explained that well enough.

View 3 Replies View Related

General :: .profile/.bashrc Not Being Read?

Apr 5, 2010

A cluster with a head node and compute nodes. An application with a couple of env variables (App_HOME, PATH) set in .profile (default shell sh). If I login to the head node/compute nodes on a terminal everything works fine. The correct env variables are set and the application works. However, when my application tries to do it, say ssh <compute node1> <application>, it appears the environment variables are not available. It only looks in the minimal /bin, /usr/bin type PATH. This tells that the .profile is not being read

View 2 Replies View Related

General :: .bashrc Ubuntu Eee Easy Peasy The Specifics Of An Alias?

Oct 21, 2010

I successfully edited the .bashrc file to get ruby version manager (rvm) working. Now I would like to turn that setting into an alias so that if i type the word 'ruby' into the terminal it not only goes to the rvm settup but also defaults to my webdev folder which is in my user home directory and also exicutes a command that will open up gedit ready to be used as the text editor for editing the .rb files. Can this be done i would settle for some added code for the 'if then' statement: so far it looks like this:

[Code]...

I don't want to mess with the default setup on this system too much and think things could get out of hand if i am not careful. So am cautious about doing anything at this stage. I wonder if it is possibel thought to setup that whole 'if then' statement as an 'alias'. I read a few referances to alias and looked in the manual like any good newby should but am needing your help please. getting out of the MSwindows mind set and into the linux logic is not so easy but is a great experience

View 13 Replies View Related

OpenSUSE :: How To "source Bashrc" - Get An Error File Or Directory Not Found

Jun 12, 2010

in order to install OpenFOAM, I need to

> source ~/.bashrc

but I get an error file or directory not found...

View 6 Replies View Related







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