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!
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
The Assignment
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
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.
Testing
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
locate
find
whereis
commands?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.