Dougy Mak's Blog

MY BLOG!

Unix $_

$_ is a variable that holds the last argument in the last command. For example,

$ chgrp ftpusers /path/
$ chmod g+s $_

$_ would equal the path. You can also echo $_ and experiment around.



No comments

No comments yet. Be the first.

Leave a reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

L:) ;) :| :x :twisted: :roll: :oops: :o :mrgreen: :lol: :idea: :evil: :cry: :arrow: :P :D :?: :? :) :( :!: 8O 8)