2009年7月2日星期四

Ubuntu Unix basic commands

## useradd : add the user

sudo useradd -d /home/silverstreet -m silverstreet

sudo passwd silverstreet
Enter new UNIX password : sil2852ver
Retype new UNIX password: sil2852ver

## SUDO : get the root user priviledges

sudo -i

## SEARCH string in files

find . -exec grep -q "Silver_Log::info" '{}' \; -print

## CHMOD in all sub folders

chmod -R 777 sources

## CLEAR file content

> filename

1 条评论: