troubleshooting Question

Executing 2 commands one after the other

Avatar of Simon336697
Simon336697Flag for Australia asked on
LinuxLinux Distributions
5 Comments1 Solution242 ViewsLast Modified:
Hi guys,
Id like to issue 2 commands to linux one after the other and just would like your help.
This is what im trying to do.

In the .bashrc file, i have a list of aliases that I have entered which save me time with certain things.
One of them is as follows....

alias viewbash='grep alias ~/.bashrc'

So, if from a command line, i enter...


I get a listing of all my aliases in the file .bashrc

What Id like to do is to enter


at a command line,

but to first clear the screen before issuing the listing of all aliases.

I dont know how to change

alias viewbash='grep alias ~/.bashrc'

to a way to first clear the screen, the run

alias viewbash='grep alias ~/.bashrc'

Thank you.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros