Hdi2u S24

From wiki
Jump to: navigation, search

Processes

  • Sometimes a command or program you run in the terminal goes on too long, or is obviously doing something

you did not plan.

  • If there is no obvious way (such as a menu option or button) to stop the program running, try using Ctrl-c
  • A command can include the output of another command by generating a process via the `` or $() operators.

Questions

  • Try these three commands:
ls
echo `ls`
echo $(ls)
  • The results are the same but the method is different. Does it matter?