• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Unix Help: Beginner - Pic's inside!!

Coldkilla

Diamond Member
I have this "practice" homework assigment that my instructor gave us today.. apparently he was going to assign it as real homework but since the date's were screwed up, he decided that he didn't like this version of the questions after all lol!

Anyways, I'd appreciate it if I could get some help. I'm working on the first set of directions now:

Picture

Problem: I dont know how to run emac's in the backround.
 
Question 1: ls -la to see 'all' files, including those that start with a period.

Question 2: because it will treat it as two files called 'Got' and 'Milk'. You can do rm 'Got Milk' or rm Got\ Milk
 
Alright. Another question say I have the file: .bashrc.tmp

If I want to change the prompt by adding a line to .bashrc.tmp in order to echo the value of PS1 variable on the screen.

What exactly does that ask that I do? I know that PS1 is a shell variable that is your command line prompt" (So my notes say) but Im confused on what exactly that means.
 
Try doing echo $PS1 or echo some_random_words and see what you get. If you add echo something to .bashrc.tmp, you'll get something output on the terminal when your source .bashrc.tmp. If you set PS1='Coldkilla $ ' guess what you'll get for your prompt?

These are pretty basic command line concepts.. you get this even on windows except that you use it with different commands.
 
Im still very confused. I can type echo $PS1 but what of it? lol, Im sorry but I'm becoming so impatent with my inability to learn this its driving me insane.

If I re-worded my question:
1. I created a new text file called .bashrc.tmp (With pico? Is that okay? I closed it after I saved the empty file)
2. I need to change the prompt. In order to do that I must:
---Add a line to .bashrc.tmp to echo the value of PS1 variable to the screen.

I can almost gaurentee you answered this question screw3d, but even your answer confused me, which really tells me that I'm still pretty stupid. Could you, or anyone re-word the answer to my question in a way a retard.. like myself, could understand?

PS the definition of: PS1 "- The PS1 shell variable is your command line prompt" Still confuses me, I don't know what that means.. These questions that he gave me as a basis for practicing.. confuse me. I've been up for 20 hours, and have my freshmen midterms in a week.. If I can't understand the very basis of ground work, I'm sure to fail.. 🙁
 
Well I've given up. The "practice homework" is too long. I can't even understand the question non-the-less the answer to the question itself. Thanks for your time dude, I just don't have the patience/tolerance to deal with my lack of knowledge this week.
 
I've given up, here's the practice sheet directions:

Create a file with bash startup commands as described below.
Customizing the Shell

This assignment is more free-form than previous ones. You'll be asked to make some modifications to your .bashrc file, but you will have some discretion as to which specific changes to make.

Create a new text file named .bashrc.tmp

The name of the bash startup file is .bashrc; it is likely that you don't have one in your home directory. To avoid the problems that result from having a malformed .bashrc file, in this assignment we will work with .bashrc.tmp until you are certain all the bugs have been worked out. Then you can rename your error-free .bashrc.tmp file .bashrc.

So, all your work should be in .bashrc.tmp

Change the Prompt

a. Add a line to .bashrc.tmp to echo the value of PS1 variable to the screen.
b. Add a line to .bashrc.tmp file that sets the prompt to display something other than the default. The prompt should include the current working directory and an ASCII bell character. The ASCII bell character will add the sound of a bell whenever the prompt comes up.(Hint: Search for the possible values for PS1 on the web)
==========================

If someone could just help me with that, I would appreciate it. This is just one of many questions the sheet asks, but I think once I get started I'll be okay. If you could explain your answers as you would to a 5 year old, I would appreciate it..

PS: Apologize for triple post, unintended.
 
Edited main post: Made this simple:
I have this "practice" homework assigment that my instructor gave us today.. apparently he was going to assign it as real homework but since the date's were screwed up, he decided that he didn't like this version of the questions after all lol!

Anyways, I'd appreciate it if I could get some help. I'm working on the first set of directions now:

Picture

Problem: I dont know how to run emac's in the backround.

*Currently have not made it to the "pipe" section. Simply questions on the text above that.
 
Personally I don't want too, just following this sample sheet..

Will "emacs &" be any different than if I selected "emacs&"?

Also, how can I have get an ASCII bell character in there?
I tried: echo ^G... no luck
 
Back
Top