Jump to content

Post your favorite useful Linux commands


eric.c.mi
 Share

17 posts in this topic

Recommended Posts

  • 2 months later...
  • 3 weeks later...

I hate to be a killjoy, but some of these ain't Linux commands and some of them wouldn't work in OS X. Or anywhere.

 

ps auxw (show every process, don't cut off at one line)

sudo su (if you're permitted to su by sudo, you don't have to type the root password with this puppy. Useful if you want to give someone root access without giving them a root password, especially)

killall <process> (sends a TERM signal to every process with that name)

killall -KILL <process> (sends the KILL signal - the process will be killed without mercy! You can also use -9)

 

Linux commands that you might find fun to impress people with (not in OS X since it doesn't use UNIX-style init scripts):

init 6 (or telinit 6 - reboots the machine in most distros)

init 0 (or telinit 0 - shuts the machine down in most distros)

Link to comment
Share on other sites

My best linux command is

 

ffmpeg -i "$(find ~/.mozilla -regex '.*Cache.*' -a -not -regex \

'.*_CACHE_.*' -printf '%T+ %p\n' | \

sort -n | awk '{ print $2 }' | xargs file | \

grep -i "Video" | tail -1 | awk -F : '{ print $1 }')" \

-vcodec msmpeg4v2 -bf 2 -b 200 -ab 64 -ar 22050 -s 320x240 \

/tmp/video.avi

 

to dump played youtube videos to some mp4

 

yes I type it by hand always I use it

 

Just kidding :)

 

more at http://www.paganini.net/index.cgi/linux/capturing_flv.html

Link to comment
Share on other sites

#1 - "kextload" then drag and drop whatever the kext you want to be loaded to the terminal window.

 

#2 - "kextstat"

 

#3 - "fink install"

Link to comment
Share on other sites

  • 2 weeks later...
 Share

×
×
  • Create New...