|
Page 4 of 4 find :- command is use to search file in the system(linux or unix)
Example:- find /home -user sweety Find every file under the directory /home owned by the user sweety.
find /usr -name *end Find every file under the directory /usr ending in ".end".
find /home/software -mtime +60 Find every file under the directory /home/software that was modified more than 60 days ago. User account creation command
userdel -r <user> for delete a user
passwd <user> for passwd a user
adduser login_name adding user
useradd -m login_name Most of the Suse enviourment
passwd login_name you need to give the new user a password for the new account
useradd <user> add New User linux User and permission In Linux there are following permission you can give to user to access file or folder
read(r), write(w) ,execute(x), all(a).
execute=1 , write=2 , read=4
In linux there are following type of users
user(u) , group(g) , others(o)
Example:-
Giving all permission to arun
all (=user+group+others):
chmod a+r arun
will remove the permission to execute the file "arun" from others
chmod o-x arun The permission for all three catagories of users (owner, group, others) is obtained by inserting the three digits together one by one.
chmod 770 arun
|