Joining two commands in the .bashrc file...
I am a newbie attending class in the Redhat Academy Website. I was wondering how can you join the two commands of cd/usr & ls successfully in the .bashrc file? Someone please answer to this post thanks.
|
Code:
cd /usr ; ls |
@ Reply
Can also use
cd /var && ls |
I then type bash to show the listing of the last command as shown ( [username@username ~]$ bash ) correct?
|
@ Reply
Can you please tell us exactly what you are trying to perform/achieve?
In the first post you mentioned that you want to know how to concatenate two commands and you wanted to add that line in .bashrc file. Are you trying to automate/get a process to load at startup? or Please let us know exactly as to what you are trying to test so that we can help. |
I received the output I needed. Thanks
|
Please remember to give us credit on your homework assignment. :)
|
Mark the thread as solved.
|
I give you guys all the credit for helping me I really appreciate it. And also thanks for letting me know to make the thread as solved...lol.
|
Good luck with your learning. Have fun with it!
Regards, ~Eric |
@ BMan8577
All the best for your learning
Enjoy Linux!!! |
All times are GMT -5. The time now is 06:53 PM. |