JosefJezek
2/24/2014 - 3:38 PM

Linux

Linux

Linux

(o_
//\
V_/_

Users

usermod example - Add a existing user to existing group

Add existing user tony to ftp supplementary/secondary group with the usermod command using the -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option:
# usermod -a -G ftp tony

In this example, change tony user's primary group to www, enter:
# usermod -g www tony

CMD Tips

sort file1.txt file2.txt | uniq -u > uniq_lines.txt

Alocate file system to user

tune2fs