LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Joining two commands in the .bashrc file... (https://www.linuxquestions.org/questions/linux-newbie-8/joining-two-commands-in-the-bashrc-file-875245/)

BMan8577 04-15-2011 04:43 PM

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.

vtel57 04-15-2011 05:41 PM

Code:

cd /usr ; ls

T3RM1NVT0R 04-15-2011 05:57 PM

@ Reply
 
Can also use

cd /var && ls

BMan8577 04-15-2011 07:46 PM

I then type bash to show the listing of the last command as shown ( [username@username ~]$ bash ) correct?

T3RM1NVT0R 04-15-2011 08:04 PM

@ 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.

BMan8577 04-15-2011 09:05 PM

I received the output I needed. Thanks

vtel57 04-15-2011 09:41 PM

Please remember to give us credit on your homework assignment. :)

MTK358 04-16-2011 08:51 AM

Mark the thread as solved.

BMan8577 04-16-2011 10:48 AM

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.

vtel57 04-16-2011 11:00 AM

Good luck with your learning. Have fun with it!

Regards,

~Eric

T3RM1NVT0R 04-16-2011 02:57 PM

@ BMan8577
 
All the best for your learning

Enjoy Linux!!!


All times are GMT -5. The time now is 06:53 PM.