Tuesday, July 7, 2009

Various Things (To be categorized later)

mkuser -a `lsuser -a -a id pgrp groups home shell gecos "ALL"`

This command will collect necessary information and imports all user information to the new system.

Install fixes on a directory

instfix -T -d /dir | instfix -d /dir -f-

Which process uses this port?

lsof | grep `netstat -Aan | grep LISTEN | grep PORT_NUMBER | awk {'print $1'}`

very useful source for sed scripts

http://sed.sourceforge.net/grabbag/scripts/

Port forwarding

ssh -l root -L 5902:localhost:5901 192.168.12.44

Sorting
lsuser -a id ALL | sort -k 2.2b > user_list.txt

this command basically sorts the users according to the their ids, if it comes sorted according to some another key by default.

.sqrt problem solution
http://www.safearea.com.au/web/guest/aix

No comments:

Post a Comment