Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-07-2010, 11:03 AM   #1
Mr. Alex
Senior Member
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Question What's the real difference between "userdel" and "deluser"?

Tried to search Google but no clear information...
Old 08-07-2010, 11:07 AM   #2
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I am not able to find a command called deluser within centOS, if it's in Ubuntu it's probably just a soft link to userdel like adduser is usually a soft link to useradd. Maybe try doing "ls -l /usr/sbin/deluser" ?

If you see "/usr/sbin/deluser -> userdel" then you can fairly sure it's just a link.
0 members found this post helpful.
Old 08-07-2010, 11:17 AM   #3
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392Reputation: 2392

deluser (and adduser) are front-ends to the userdel (and useradd) commands.

Some distro's have these in place next to the "real" userdel command. They (deluser/adduser) are supposed to be more user friendly.

Hope this helps.

Found this: adduser, addgroup, deluser and delgroup
Old 08-07-2010, 11:26 AM   #4
Mr. Alex
Senior Member
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled

$ ls -l /usr/sbin/deluser
-rwxr-xr-x 1 root root 16490 2010-01-27 13:26 /usr/sbin/deluser

$ ls -l /usr/sbin/userdel 
-rwxr-xr-x 1 root root 51828 2010-01-26 20:09 /usr/sbin/userdel
About adduser and useradd: useradd is a command; adduser is a Perl script.
Old 08-07-2010, 11:28 AM   #5
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
man adduser

       adduser  and addgroup add users and groups to the system according to command line options
       and configuration information in /etc/adduser.conf.  They are friendlier front ends to the
       low  level  tools  like useradd, groupadd and usermod programs, by default choosing Debian
       policy conformant UID and GID values, creating a home directory with  skeletal  configura‐
       tion, running a custom script, and other features.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 05:08 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 10:40 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 02:30 PM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 02:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration