LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-07-2005, 06:02 AM   #1
mastervampire
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
newbie needs help with simple program


hey every1
im a noob when it comes to linux, im still trying to find my way around it cause were going to be using it for college next term so im trying to get a head start :P looking at examples and stuff

My teacher gave us some examples and stuff to do in advance if we want but im a lil confused and need some help from people who actually know there way around linux :P


Im trying to make a simple program or script or bashscript program what ever u call it lol that will do this regarding deleting users.

like i want it so my program reads a file that has the user names to be deleted, list the ammount of disk space they have used, then ask if their files are to be deleted or not and lastly delete the user and depending if u want to or not, delete their home folder or not

anyhelp would be lots of help
thx
 
Old 03-07-2005, 06:26 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Does it have to be a bashscript?

Regardless, here are a few things to help you get going. To get the amount of space a user has used in there home folder you could do:

# du -csh /home/user

To delete a user you can do:

# userdel user

and if you want to delete there home folder you would do:

# userdel -r user

Last edited by Crashed_Again; 03-07-2005 at 06:38 AM.
 
  


Reply


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
simple program help! rohitkara Linux - General 1 05-24-2005 09:57 PM
C++ Newbie stuck on first simple program webwolf70 Programming 8 09-14-2004 02:29 AM
simple c program liguorir Linux - Software 4 05-29-2004 07:22 AM
c++ newbie - help debug simple program please mymojo Programming 4 11-27-2003 05:17 AM
simple program bprasanth_20 Programming 5 10-29-2003 01:55 AM


All times are GMT -5. The time now is 07:57 PM.

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