Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
- The problem statement, all variables and given/known data:
Here is what I am supposed to do, word for word from my assignment page:
-
Create/modify and print a .profile that does the following:
a) Displays the date and time
b) Lists all the current users
c) Adds the users home directory and the current directory to the PATH
d) Changes the prompt to display the current directory -
Display the current system variables
-
Create an alias for a command that will look for your name in the password file
-
Relevant commands, code, scripts, algorithms:
.profile, alias
- The attempts at a solution (include all code and scripts):
Here is what I have for each step above:
-
Create/modify and print a .profile that does the following:
a) date
b) users
c) export PS1='${PWD} '
d) PATH=$PATH:$HOME:$PWD -
set
-
alias findmyname="grep /etc/passwd"
A couple questions:
-
My teacher wants me to print a listing of the profile. Would I just do "touch .profile" and then append (using ">>") the commands to the file, then print it?
-
I am not sure if my alias is correct. Not sure how to find the exact location of the passwd file
Thanks in advance.
- Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Brookdale Community College - Lincroft, New Jersey - United States - Dr. Rick Bournique- COMP 145
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).