LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 01-27-2005, 03:16 PM   #1
rcallahan
LQ Newbie
 
Registered: Jan 2005
Location: Seattle
Distribution: RedHat 3.0 White Box
Posts: 5

Rep: Reputation: 0
Shell Customization


New to scripting and adding aliases, and have this exercise with RHA, wondering if anyone could help


Edit your ~/.bashrc file, so that newly started bash shells have the following properties.

1. The alias dir executes the command ls -l.
2. The alias globoff disables pathname expansion (by enabling the appropriate shell flag).
3. The complimentary alias globon enables pathname expansion (by disabling the appropriate shell flag).
4. When redirecting output to a file, the bash shell will not clobber (overwrite) an already existing file.
5. The shell has the cdspell shell option enabled.
6. The rm command is aliased to rm -i.

Challenge Exercise

The following exercise may be completed as a challenge exercise. It will not be graded by the automated grading script.

Configure the primary prompt to contain the history number and exit code of the previously executed command, separated by a : (with no spaces). The colon should be the only colon contained in the prompt.

If appropriately configured, the prompt should have behavior similar to the following. Note carefully the behavior of the prompt after a successful command, after an unsuccessful command, and as it relates to the history number of the previously executed command.

[madonna@station madonna] 40:0 $ ls -d /tmp
/tmp
[madonna@station madonna] 41:0 $ ls -d /TMP
ls: /TMP: No such file or directory
[madonna@station madonna] 42:1 $ history
...
41 ls -d /tmp
42 ls -d /TMP
43 history
[madonna@station madonna] 43:0 $ !42
ls -d /TMP
ls: /TMP: No such file or directory
[madonna@station madonna] 44:1 $
 
Old 01-27-2005, 03:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
You're joking right? most people actually try to slightly hide the fact that it's homework.....

please do not ask for help with assignments here. you need to learn for yourself.
 
Old 01-27-2005, 03:33 PM   #3
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Rep: Reputation: 31
HAHA
 
Old 01-27-2005, 03:41 PM   #4
rcallahan
LQ Newbie
 
Registered: Jan 2005
Location: Seattle
Distribution: RedHat 3.0 White Box
Posts: 5

Original Poster
Rep: Reputation: 0
Just hitting a brick wall right now with it, and that is why I came here for help..... It is part of learning... But as I understood you do not want me gathering information from this site?
 
Old 01-27-2005, 04:00 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
LQ rules clearly state:
Quote:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.
Your question is a homework one. In such cases we don't answer directly. You'll get only general guidelines.

I recommend you to look into Bash reference here: http://www.gnu.org/software/bash/manual/bashref.html
You can find ansers by simply searching for keywords like alias or pathname. The way the questions are written makes this really easy.
 
Old 01-27-2005, 04:11 PM   #6
rcallahan
LQ Newbie
 
Registered: Jan 2005
Location: Seattle
Distribution: RedHat 3.0 White Box
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you... It's nice to read other writing styles on the same topic... very usefull... Good day....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Look Customization JaySuSE Suse/Novell 6 04-05-2005 08:55 PM
Customization Jmcatch742 Linux - General 7 08-21-2004 09:55 PM
Gnome customization chorus Linux - Newbie 0 08-17-2004 08:02 PM
Logon Customization technochef Debian 3 08-11-2004 09:46 PM
enlightenment customization Hektik Linux - General 2 03-29-2003 03:44 PM


All times are GMT -5. The time now is 07:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration