|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
First of all... Sorry if i posted in the wrong section >_<
Hi, i'm kinda new so please advice and teach/guide me ok? Thx in advance... ^^ I need guide on doing the below things, with just using command line ( yast & yast2 ) are disable. *First - I need to create a new local user describe as below : -Full name : Little John -Login Id : john -Temporary password : john123 *second - there is a marry.txt file, and i want to change the owner of the marry.txt to john. and then change the marry.txt file right to -rwxr-xr-w. *third - i wan to backup /etc directory to the /mnt directory. and the backup file name is etc.tar.gz. please teach me on how to type in the correct full command line. And after i backup it what command should i type so i can view the backup file? And lasty, if i want to restore the file to the /tmp directory, what command line is to type then? Please guide me with me all the step/procedure? ( Yast and Yast2 are disable )want to learn it by using just command line? I'm new and trying to learn here so thanks in advance ^^ |
|
|||
|
On Thu, 29 Oct 2009 03:06:01 +0000, crayes5735 wrote:
> I need guide on doing the below things, with just using command line ( > yast & yast2 ) are disable. Why are these tools disabled on the system? It takes a fair bit to disable them on an openSUSE system (you have to opt to not install a fair number of packages) - the purpose of these tools is to make admin easier. > *First - I need to create a new local user describe as below : > > -Full name : Little John > -Login Id : john > -Temporary password : john123 Have a look at the man page for useradd. Type: man useradd This is the documentation for the tool and should answer your questions. > *second - there is a marry.txt file, and i want to change the owner of > the marry.txt to john. and then change the marry.txt file right to > -rwxr-xr-w. man chown man chmod These two commands (chown and chmod) will be what you will use for these tasks. > *third - i wan to backup /etc directory to the /mnt directory. and the > backup file name is etc.tar.gz. please teach me on how to type in the > correct full command line. man tar This will show you the options for the tar command. > And after i backup it what command should i type so i can view the > backup file? > > And lasty, if i want to restore the file to the /tmp directory, what > command line is to type then? These two things are also in the man page for tar. You'll learn more by doing the research using the resources I've directed you to above than if someone just gives you the answers. :-) Jim -- Jim Henderson openSUSE Forums Moderator |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|