General :: Erasing Default Root Bashrc In Fedora 13

Mar 6, 2011

I erasing default text in fedora 13 root bashrc and when I want to swich user ( with su command ) to root , icant,and i see bash-4.1????

View 1 Replies


ADVERTISEMENT

General :: Automate Sourcing .bashrc When Su - To Root

Oct 16, 2010

I need to source the my /home/me/.bashrc file every time I "su -" to root. Is there any way to automate this? I cannot edit any thing in the root's environment as it is shared by people.

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

Ubuntu :: Bashrc Take Effect Immediately In Root Shell?

Mar 9, 2011

How do you get your bashrc take effect immediately in your root shell? I read this.

[URL]

Code:
. ~/.bashrc

Does this not work in your root shell?

View 1 Replies View Related

Fedora Servers :: Can't Login As Root By Default

Sep 6, 2009

this issue started with F10 and now F11. please how do i login as root during the login prompt or do i need to enable any script of SELinux?

View 1 Replies View Related

Ubuntu :: Installing Fedora Without Erasing ?

Mar 20, 2010

I would like to try another flavor of linux (fedora)..Currently i am using Ubuntu 9.04, without erasing ubuntu i like to try Fedora..So can someone tell me how to install fedora without losing Ubuntu?

View 8 Replies View Related

General :: What Is The Default Root Password For DSLinux?

Mar 17, 2010

What's the default root password in DSLinux, or in any Linux distribution?

I didn't set it.

View 2 Replies View Related

General :: Is There Default Password For Root On Pclinuxos?

Mar 27, 2011

Is there a default password for root on pclinuxos? I didn't have an option to set the pw on reboot and it is no longer 'root'. I can't open the synaptic package manager or install wine without it, it seems.

View 5 Replies View Related

General :: Rm -rf Not Erasing Directory?

Apr 24, 2010

I am attempting to erase a directory called apps. When I run rm-rf apps it looks like it erases it for the moment. When I log back on to the server the directory is still there, though it is highlighted in green.

drwxrwxrwx 3 user user 4096 2010-04-24 18:33 apps

View 6 Replies View Related

General :: Error While Erasing A Pkg

Dec 1, 2010

While trying to remove a pkg by rpm it's giving the error as:

PHP Code:

How will I remove this package ?

View 3 Replies View Related

Fedora :: Re-creating Without Erasing Data LVM Drive?

Jun 9, 2010

My OS hard drive crashed on my file server. and now I am trying to "restore" my drives.

I am having problems re-creating without erasing data my Linux LVM drive. I would like some instructions on how to re-create my logicalVolumeGroups and phisical groups so I can re-mount my Linux LVM partition.

Here is my specific information.
when I do a pvdisplay I only get my boot vg_files group listed
pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name vg_files
PV Size 74.33 GB / not usable 577.00 KB
Allocatable yes (but full)

[Code]...

View 14 Replies View Related

General :: Erasing An Old Hard Drive ?

Mar 20, 2011

A friend of mine has just given me an old 80GB hard drive provided that i erase the hard drive. So could someone tell me that if i used Code: shred -vz -n 3 /dev/hda to erase all data contained on the hard drive Would i then have to reformat the hard drive so i could install a Linux OS on it?

View 9 Replies View Related

General :: SH: Erasing Fast A Cdrom ?

Jun 23, 2011

To do that:

Code:

But -blank=fast makes it really faster? Visibly not so much, right?

View 3 Replies View Related

General :: Erasing From The Cursor Up To The Beginning Of The Following Word In Vim

Dec 13, 2010

In a wide family of "ancient" text editors, by pressing ^T you erased from the cursor up to the beginning of the following word. If we use '_' to represent the cursor, the thing was like this:

Code:

If I now hold <CNTL> down and press <T>, the result will be

Code:

Want to feel at home with vim. Many times I have consulted and even tried to systematically study vim's man page. Sometimes I consulted it with profit, sometimes not. This is one of the latter.

View 6 Replies View Related

General :: Erasing From The Cursor Up To The Beginning Of The Word In Vim?

Dec 13, 2010

In a wide family of "ancient" text editors, by pressing ^T you erased from the cursor up to the beginning of the following word. If we use '_' to represent the cursor, the thing was like this:

Code:
want to feel _ at home with vim. If I now hold <CNTL> down and press <T>, the result will be Code: want to feel at home with vim. Many times I have consulted and even tried to systematically study vim's man page. Sometimes I consulted it with profit, sometimes not. This is one of the latter.

View 3 Replies View Related

General :: Reinstall Ubuntu 10.04 LTS Without Erasing Partition

Feb 5, 2011

I've had problems with my Ubuntu partition on my computer, so I have decided that I might have to format the partition or reinstall Ubuntu.

My problem is that I have files on my partition that I would like to save. I've tried every tool I've found that allows Ext2 to be read in Windows, but none of them work for me. The best I have gotten is that I would be able to see the folders in /, but that is it. I was wondering if it was possible to reinstall Ubuntu without having to erase the partition.

View 1 Replies View Related

General :: Recover Windows Without Erasing Files?

Feb 21, 2011

I tried to to install Kubuntu on a usb port to make it portable. I used my buddies laptop and when the program asked if i wanted to erase the Hard drive I made it erase the USB port and install on there. When I was finished windows would no load up from the Hard drive on the Laptop and the message I got was a code and grub rescue. How can I recover Windows with out erasing the files?

View 12 Replies View Related

General :: Erasing From Home Up To First Blank As Type At The Prompt

Nov 28, 2010

GNU bash 3.1.17. I say there must be, in bash, a keystroke combination that does this: I type say, two words at the prompt. Then I press HOME. And now, holding down some control key, I press a key that erases from current cursor position up to the first blank (the space between the two words). If I am right, which is the key combination? You could as well refer me to the bash manual section where the different combinations, one of them a control key are listed.

View 2 Replies View Related

General :: Mount 2nd Hard Disk Without Erasing Data?

Jan 26, 2010

Is it possible to mount a 2nd hard disk without erasing the data that is already on it? If so, what command must I enter. The system recognizes that the disk is there, I just can't access the data because it hasn't been mounted.

View 5 Replies View Related

Fedora :: .bash_profile Is Sourced Rather Than .bashrc?

Jan 17, 2010

I am curious since "Run command as a login shell" is UNTICKED (I think for all new users) under Gnome Terminal -> Menu Bar -> Profiles -> Edit -> Title and Command , BUT .bash_profile is sourced. I thought .bashrc should be sourced instead ?

View 6 Replies View Related

Red Hat / Fedora :: Xterm Config In /etc/bashrc?

Oct 18, 2010

The following line is in the /etc/bashrc file. I was trying to decipher it but no google results explain it in detail.PROMPT_COMMAND='echo -ne 33]0;${USER}${HOSTNAME%%.*}:${PWD/#$HOME/~}07"'I understand that 33 is the ASCII character for ESC but not sure what ]0 does or anything after the HOSTNAME variable.

View 1 Replies View Related

Red Hat / Fedora :: Adding Alias To .bashrc?

Feb 9, 2011

I have a script that I run using ./dom example.com.

I want to add an alias to .bashrc so that I can run it using "d example.com".

I have tried adding each of the lines below in turn but I still receive the error:
-bash: d: command not found

alias d="/bin/bash /home/user/dom"
alias d="./home/user/dom"
alias d="sh /home/user/dom"

View 3 Replies View Related

Fedora :: ~/.bashrc Permission Denied 13?

Nov 15, 2010

I am trying to install Network simulator 2.34 on fedora 13..my installation was successful. but I am unable edit my bashrc file...All I had to do was

"
Add all these lines into your ~/.bashrc file:
export PATH=$PATH:/opt/ns-allinone-2.34/bin:/opt/ns-allinone-2.34/tcl8.4.18/unix:/opt/ns-allinone-

[code]....

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

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

Fedora Security :: Sudo NOPASSWD To BashRC Alias?

Aug 25, 2011

I've set up an alias in .bashrc (let's call it alias1), and am trying to set up a sudo NOPASSWD rule for that particular command. So far, I've attempted:
user ALL = NOPASSWD: alias1
user ALL=(ALL) NOPASSWD: alias1
But keep getting told I have a syntax error - presumably this is because visudo doesn't recognise alias1? I've already checked that alias1 works correctly, so I assume I'm just referring to it incorrectly.

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

General :: Escape Commands In A Bashrc Alias?

Sep 17, 2010

I need to occasionally touch a file with the current timestamp as the filename. I would do so this way:

touch `date "+%Y-%m-%d_%H-%M"`.txt

However, I'd like to define an alias for this. When I try adding to the bashrc this:

alias td="touch `date "+%Y-%m-%d_%H-%M"`.txt"

the result is that the filename is the same during the entire session, since the `date ..` gets calculated just once during login...

How can I get the command to expand only when I call the alias? Or must I use a function for this?

View 1 Replies View Related







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