Sometimes you may want to run multiple commands in the terminal. Here is how to do it:
If you want to run multiple commands in the terminal respectively, just add a semicolon (;) between two commands. For example:
command1; command2; command3
With this syntax, it does not matter if a command returns to error, all the commands you use will be executed eventually.
I have this command:
time -p sh -c 'command1; command2;'
So command1and command2 is executed and I get the real, user and sys time printed on the console.
But I want that command1; command2; is looped 10 times and then I want to get the time which is used for the two commands.
I have 2 commands which I want to pipe like so: command1 | command2. When command1 does not output anything at all command2 still outputs. How do I stop
command1 | command2 from outputting when command1 does not output anything?
Concrete example:
function find_string_in_file {
find .
HI guys, I like ubuntu so much that I "totally" abandoned Windows. The problem I have is that I really need some of the command prompt commands that I had in windows. I will type a list of some of those commands and please let me know about an alternative to that command in Linux.
Hi,
I have a VPS with Ubuntu 12.04 Server and would like to use ubuntu one storage to do some backups, is it possible through command line? and if so, what are the commands to run?
Primarily, I would back up all Databases and some directories to Ubuntu One.
Thank you!
I want to start linux so my best choice was with ubuntu. But i got struck in installation procedure, ubuntu fails to start display compatible with my graphics (nvidia 9200 M G integrated/ no intel HD). After its logo of ubuntu it freezes, even on terminal(ctrl+alt+f2) when i start to type xandr..
Terminal Commands are cool and very handy sometimes (even for common users who don’t like terminal), also useful in learning some cool stuffs about Ubuntu or GNU/Linux in general (so it’s also good for learners).
I’ve prepared a list of few terminal commands – that anyone can learn and master (in couple of minutes), in order to enjoy a better experience with Ubuntu or othe
I use Ubuntu 12.10.
When I open a terminal window, it allows me to navigate through the commands I typed in the past by pressing the up arrow button.
* Does anyone know where these commands are stored for the terminal window to read and display?
* Is there a way I can see all commands (may be stored somewhere in the system)
Thanks
Frequently, there are some things we need to do, tweak system settings, execute some processes, however even on Ubuntu, sometimes there isn't a GUI to perform such tasks, which is why we come to places like Ubuntu forum, askubuntu or even search on Google.
Then someone provides us a terminal command that allows us to do whatever we need at that moment to solve a certain problem.