Sunday, October 16, 2016

Unix commands Cheatsheet

1.Create a group in Linux
    groupadd <groupname>
Ex:    groupadd trial

2.Create a user.
    useradd -c "test user " -m -d /home/test -g trial -G trial -u 1000 -s /bin/bash test
 options explained -c for comments
                                -d  home directory for the user
                                -g primary group
                                -G secondary groups
                                -u uid
                                -s shell