May 12, 2008 by Romania Hotels
Linux basic commands FAQ
Simple tasks for simple minds
The “forgotten root password”
Q. I forgot the root password on my linux machine. How do I change the password ?
R. The easiest way to change the “forgotten root password” is to boot your Linux machine in the single-user mode, namely at the “lilo”prompt, during the bootup you will type:
linux single
This will log you in as “root” without asking for a password. As root, you may now change the root password using passwd command ( the old password is not required ):
passwd
If this seems to you insecure or to simple to be true, that is because no computer system is realy secure if other people have physical access to the computer hardware.
There is a way to secure the lilo boot, but this will be the subject for another article.
Tags: linux root password passwords passwd
Posted in Linux Passwords | No Comments »
May 12, 2008 by Romania Hotels
Linux basic commads FAQ:
Simple task for simple minds
Q. How do I change the root password on a linux ( unix ) operating system ?
R. What you need to do in order to change the root account password on a linux or unix machine is:
- open a terminal an login as root ( if the system permits loging in as root )
or
- open a terminal, login with your account and type “su” to become root.
Enter the ( old ) root password to login
then type “passwd” and it will prompt you for a new password.
—————————-
root@ibm:/# passwd
Changing password for root
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
New password: **********
Re-enter new password: **********
Password changed.
————————–
This should be all.
P.S. The password should be rather complex, containing numbers and letters. However try to pic one that you will remember easily, but not known by everybody.
Tags: linux root password passwd
Posted in Linux Passwords | No Comments »
April 4, 2008 by Romania Hotels
Quick Start: Here we’l present quick start examples explained.
Create linux tar gz (Gzip) archive
tar -czvf myarchive.tgz mydirectory/
We use the -t option to create an linux tar archive
-c, –create create a new archive
Note that .tgz is the same thing as .tar.gz
Create linux simple tar archive (withouth compresion)
tar -cvf myarchive.tar mydirectory/
Extracting linux tar archive:
Extract linux tar gz (Gzip) archive
tar -xzvf mystuff.tgz
Extract linux simple tar archive
tar -xvf mystuff.tar
We use -x to extract the files form the tar archive
-x, –extract, –get extract files from an archive
And now let us shortly explain this command
Usage: tar [OPTION]… [FILE]…
Let us check the option used in this example
-c, –create create a new archive
-z, –gzip, –ungzip filter the archive through gzip
-v, –verbose verbosely list files processed
-f, –file=ARCHIVE use archive file or device ARCHIVE
Testing / viewing your archive
tar -tvf myarchive.tar
tar -tzvf myarchive.tgz
Here we used the - t opton
-t, –list list the contents of an archive
————————————————-
Go ahead, try out these commands and stay tuned; we will come up with more doccumentation on linux tar command
Tags: Linux, Linux Commands, tar, tar.gz
Posted in Linux Archives | No Comments »
April 3, 2008 by Romania Hotels
Because I for one, am not a Linux or UNIX guru, and still need to use Linux and Linux basic (or not so basic) commands.
So I decided to gather all the articles about simple Linux and UNIX commands, in one place. linuxbasiccommands.wordpress.com will be the place for there articles. Stay tuned, I will update frequently.
Tags: Linux, Linux basics, Linux Commands, Unix
Posted in Uncategorized | No Comments »