Lunux commands I often need and still forget

Information is easily available, I just hav to search a bit each time again.

Do something with the result of find

find <path> -type d -name '.svn' -exec rm -rf {} \+

Open port

iptables -A INPUT -p tcp —dport [N] -j ACCEPT

Mount a samba share

sudo mount -t cifs -o user=assen,password=xxx // /mnt/mavenrepo


Add user to group

usermod -Gtomcat assen

View user info

id [user]

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License