Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a homework assignment due soon and I am completly stuck... it says i have to make a copy of my .bashrc file but ive been searching for it for a while but haven't found it... I've searched in multiple directories for it and i cant find anything on it. Below is a what my homework says to do... Any suggestions will help - thanks
CS-140 Fall 2005 Assignment 3: customizing the shell
Modify (or create) a copy of your .bashrc file as described below. Submit the file to the assignment 3 dropbox in D2L. The assignment is due Tuesday, October 18th, by 11:59pm.
Assignment: Customizing the Shell
This assignment is more free-form than previous ones. You'll be asked to make 3 different types of modifications to your .bashrc file, but you will have some discretion as to which specific changes to make.
Copy your .bashrc file
You could make inadvertent changes to your .bashrc file that hinder your ability to work in UNIX. It’s good to do your work on a copy of the .bashrc file first. Remember that files with a period at the beginning of their name are invisible. A good name for the copy might be "cs140_bashrc". If no .bashrc, create a new, empty file named cs140_bashrc.
Open the copy of the .bashrc file
The file may contain many lines of text that make no sense to you. You should leave these, and just add lines to the end of the copy of your .bashrc file.
Change the Prompt
You should set the prompt to display something other than the default. For full credit, the prompt should include the current working directory, user name, or other PS1 format string.
Set the History
You should tell the shell to keep 140 commands in its history, and echo the command you used to do this to the screen.
Alias at least 3 commands that will make your life easier. One common alias for DOS users is to alias dir to be recognized as some form of ls. You could make more descriptive names for other commands, like wordcount for wc.
You can see the effects of your changes to the copy of the .bashrc file immediately by using the command “source <file name>”. This causes the shell to run <file name> immediately.
Preparing Your Assignment
Submit the modified copy of your .bashrc file to the assignment 3 dropbox in D2L. If you wish, you can replace your existing .bashrc file with the modified version using the mv command.
I would assume then(I am no guru)that if you loked in your home dir and didn't find it...did you try the
If not found, according to your instructions you are to create one.
I looked again but no luck... i realize that it says if its not there then i have to create one, but doesn't the .bashrc file have set variables and values that are only in the .bashrc file... and if i created one where do i get the script for it