User Tools

Site Tools


usefulcommands

Differences

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:
 +<​code>​
 +$ gunzip < file.tar.gz | tar xvf -
 +$ gunzip < file.tgz | tar xvf -
 +</​code>​
  
 +Change user's shell on FreeBSD system to bash
 +<​code>​
 +$ 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 ​
 +</​code>​
 +
 +Find setuid and setgid files on your system.
 +<​code>​
 +find / -type f \( -perm -2000 -o -perm -4000 \) -print
 +</​code>​
usefulcommands.txt ยท Last modified: 2014/10/02 14:20 by admin