Can any one post basic LINUX commands..

Status
Not open for further replies.

//siddhartha//

Stabbing my shoe
Hi! I am a newbie to linux and wish to learn its lingo.. i have already installed SuSE 9.1 on my PC.. Can anyone post some standard commands which can be used along with its application/use..
For eg.: su (To log on as root), etc..
THANX..
 

cool_dude_prav

In the zone
Hmm.. here u go...

chmod - used to change permissions for files in Linux...
echo - used to display some text in SHell Scripting (echo the word explains it)
read - used in Shell Scripting to read data to be used in the script
For more details, see My Tut
 
OP
S

//siddhartha//

Stabbing my shoe
What is the command for changing directories ?
Also, by which commands can I install programs like .rpm and .tar.gz?
How can I change root password and login password using commands ?
 

ujjwal

Padawan
To change directories, "cd <directoryname>"

To list contents of the current directory, "ls".

For decompressing .gz files, "gunzip filename.gz"
For .bz2 files "bunzip2 filename.gz"

For extracting tar files, "tar xvf filename.tar"
And then cd to the directory created.

If this directory contains source code of the software, the general way to install is

./configure
make
make install

But this can vary, read the README and INSTALL files

less README
less INSTALL

Some miscellaneous commands -

To display a file on screen,

cat filename

To display it such that you can scroll up and down with the arrow keys

less filename

Text editor

vi filename

Remember that it is always case sensitive.
 

#/bin/sh

Journeyman
Installing the software in these packages is generally not too hard, and usually you can install them in the following steps:

.tar file
**********

tar xf file.tar # UnTAR the file.
cd file
./configure
make
make install # Optional, usually just installs additional man pages and such.

The program should now be installed, if the program compiled cleanly.


.tar.gz file
*************

gunzip file.tar.gz # GUNzip the file.
tar xf file.tar # The file is now just a .tar file.
cd file # Go into the directory.
./configure # Configure the makefile.
make # Compile the program.
make install

The software should now be ready to run, if compiled correctly.


.tgz file
**********

One upside in these files in that they usually include compiled binaries (programs ready to run). These usually don't require any installing, and you can usually run them right away.
 
Status
Not open for further replies.
Top Bottom