User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

usefulcommands [2014/10/02 14:20] (current)
admin created
Line 1: Line 1:
 +Files with extension tar.gz or .tgz are tar files compressed with gzip. On Unix system extract them with following command:
 +$ gunzip < file.tar.gz | tar xvf -
 +$ gunzip < file.tgz | tar xvf -
 +Change user's shell on FreeBSD system to bash
 +$ pw usermod user_name -s /​usr/​local/​bin/​bash
 +$ pw usershow user_name
 +user_name:​*:​1002:​1002::​0:​0:​Some User Name:/​home/​user_name:/​usr/​local/​bin/​bash ​
 +Find setuid and setgid files on your system.
 +find / -type f \( -perm -2000 -o -perm -4000 \) -print
usefulcommands.txt ยท Last modified: 2014/10/02 14:20 by admin