Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Linux Ask!

Dec 312009
 

How to restart a frozen Linux System?

Answer:

Try the following two simple methods first:

  1. Hold down Ctrl+Alt+Backspace if you are in graphic mode
  2. if not work, then hold down "Ctrl+Alt+F1" to get into the shell and use the "reboot" command to reboot

If still not work, do the following:

  1. Hold down the Alt and SysRq (Print Screen) keys
  2. While holding those down, type the following in order: REISUB
  3. You computer will reboot now
Dec 312009
 

How to run multiple commands at once in Linux?

Answer:

You can separate the commands by a semicolon ;

e.g.

cat foo.txt; cat bar.txt

Two commands will be executed one by one.

However, if you want to execute a command if and only if previous command is executed successfully, then you can use && to separate them

e.g.

make && make install

So if make failed, make install will not be executed.