Reader Wieger van der Burgt wrote in with a nice list of Unix goodies. Some of the tips expand on things I’ve written about before, while others may be new to you. (Especially if you’ve only been following along here at The Apple Blog for Unix tips as of late.)
So while I work on the weekly Unix Tip I was planning for this week, I’ll leave Wieger’s list for your viewing pleasure. Thanks for the contribution Wieger!
cd ~/
your home dir
ps -aux
get a list of what is running and stop
top
same as above except it keeps showing
touch [filename]
making a new file, for example a text file:
touch test.txt
touch /test.txt
doing this in another folder – the root folder in this example
ls > ~/test.txt
put the output in a text file named test.txt
this is possible with all the comands. so if you want a list of running
programs:
ps -aux > ~/ programlist.txt
[command 1] | [command 2]
run command 1 and wait till it is finished then command 2
{"source":"https:\/\/gigaom.com\/2007\/01\/18\/quick-unix-tips\/wijax\/49e8740702c6da9341d50357217fb629","varname":"wijax_e2c522916c2b2d592bc951f5fa763100","title_element":"header","title_class":"widget-title","title_before":"%3Cheader%20class%3D%22widget-title%22%3E","title_after":"%3C%2Fheader%3E"}