Posts Tagged With: Linux

Delete User

Tagged with: , , , , ,

Delete a user ( ‘-r’ eliminates home directory)


userdel -r user1
No Comments »

Password Deadline

Tagged with: , , , , , ,

Set deadline for user password


chage -E 2008-12-31 user_name
No Comments »

Change User Attributes

Tagged with: , , ,

Change a user’s attributes


usermod -c "User FTP" -g system -d /ftp/user1 -s /bin/nologin user1
No Comments »

Create New User

Tagged with: , , , ,

Create a new user belongs “admin” group called ‘user1′


useradd -c "Name Surname " -g admin -d /home/user1 -s /bin/bash user1

There is a simpler command too…


useradd user1
No Comments »

Package Listing in Debian

Tagged with: , , , , , , , ,

Show space used by deb packages installed sorted by size (ubuntu, debian and like)


dpkg-query -W -f='${Installed-Size;10}t${Package}n' | sort -k1,1n
No Comments »

Rename an User Group

Tagged with: , , , ,

Rename a group


groupmod -n new_group_name old_group_name
No Comments »

Set Time

Tagged with: , , , ,

Set date and time - MonthDayhoursMinutesYear.Seconds


date 041217002007.00
No Comments »

Full Year Calendar

Tagged with: , , ,

Show the calendar of 2008


cal 2008
1 Comment »

Show Interrupts

Tagged with: , , , ,

Show interrupts


cat /proc/interrupts
No Comments »

Show file swap

Tagged with: , , , ,

show file(s) swap


cat /proc/swaps
No Comments »