Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ .bashrc Question

Posted by: PaulCurfman Oct 27 2008, 06:50 PM

Hello,

I am student taking a college course where we have to do some basic linux commands. The instructor has been intentionally vague and told us to hunt down our answers across internet message boards.

I use Putty to telnet into this, so all I have is a prompt to type from.


I am supposed to edit my bash file using pico. I understand how to get into pico, I dont understand how to properly edit the bash file.

I am supposed to add commands for the following which i think will be aliases.

display contents of a directory = mycd
display date and time = mydt
logoff = myexit

So my question is how do I open this file with Pico, what is the proper syntax to do this, and what bash file do I use? I am able to see the following bash files .bash_history, .bash_logout, .bash_profile, .bashrc.

Any help would be appreciated. Thanks

Posted by: docmur Oct 28 2008, 06:07 AM

Simple just do pico .file

Then create a aliase

so ALIASE mydt date ............

That should work of course I just want to state that I've never actually done this. I also have a Linux course but the prof I have is a complete idiot.
He doesn't think theres a difference between Gcc 3 and Gcc 4 and doesn't understand how to work directly wit hthe kernel.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)