miscellaneous shell-fu

23 Feb 2009

Posted by acrollet

Not too much to share today - just a couple neat little things I ran across over the past couple of days, to wit:

1. if you give chown a user with a trailing colon, it will automatically use that user's default group. ex:

  1. <a href="mailto:root@rollett">root@rollett</a>:~/blog# touch t
  2. <a href="mailto:root@rollett">root@rollett</a>:~/blog# ls -l t
  3. -rw-r--r-- 1 root root 0 Feb 23 22:21 t
  4. <a href="mailto:root@rollett">root@rollett</a>:~/blog# chown www-data: t
  5. <a href="mailto:root@rollett">root@rollett</a>:~/blog# ls -l t
  6. -rw-r--r-- 1 www-data www-data 0 Feb 23 22:21 t

2. Pinfo is a more user-friendly info file reader/browser. The jk keys do what any God-fearing vi user would expect them to.

@rant: I don't want to learn emacs keystrokes just to read info that should have been in the man page! durn kids these days...

that's all for today!

Add new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.