glugt-mgl

 

How-to's

Page history last edited by yazhini 2 yrs ago

How to's – How to do things in Linux

This list will tell you how to do a few everyday things in linux, just that. The internet will help you greatly if you're interested in knowing more about any of the things told here. :) All commands are to be typed at the terminal, without any quote.

 

<will be done by 5 today evening, if anyone sees this, add whatever you'd like to add - yazhini>

 

How to login into a remote computer running Linux, from a computer connected to it by a network?

You must have an account in a linux computer to login into it, naturally. One of the many ways of logging into a computer is direct logging in, wherein you sit at the computer and type in the username and password. The other ways of logging in are telnet, ssh, <add things here>

 

Telnet gives you a command line access to a remote computer. You will be asked to enter a username+password to login into the computer that you specify by its hostname or ip address. In windows, this can be done by selecting Run at the Start button and typing "telnet silver", for example, without the quotes. Once you enter the username and the password in the window that appears, you are logged into the computer silver. In linux, this can be done by typing "telnet silver" at the terminal.

 

SSH is now the de facto standard of remote computer logins. SSH stands for Secure Shell. The big difference between ssh and telnet is that ssh provides enhanced security to your login session. SSH is a secure telnet which encrypts everything you type in and then unencrypts it on the server so your commands and passwords are all safe. From the terminal, you can login into a remote computer using ssh by typing "ssh username@hostname" and then entering the password when asked for it.

 <should add putty,vnc>

 

How to copy files from a remote computer running Linux, to a computer connected to it by a network?

This is done with the command scp. Stands for secure copy. It provides the same security as ssh.

"scp user1@host1:myfile user2@host2:mynewfile"

will transfer the file myfile from the account of user1 in host1 to user2's account in host2. The transferred file in host2 will be called mynewfile.

 

How to share the files in a Linux computer with computers running Windows?

<samba>

How to share files using ftp?

How to install a plugin or a software from the internet?

<tar, rpm, zip, repos>

How to run c, c++, java, php, perl programs from the command line in Linux?

 C : "gcc -o filename progname.c" will compile progname.c and the object file created will be called filename. It can be run by typing "./filename".

C++ : Same as for C, replacing gcc with g++.

Java : "javac filename.java" will compile filename.java. An object file called filename (without any extension) will be created and it can be run by typing "java filename".

PHP : "php -f filename.php" will run filename.php.

<add perl, python, etc if you want>

 

How to mount a pendrive if it's not getting mounted by itself?

How to show off with the command line, to people who don't use linux? :P

Best learnt by oneself. Practice helps a lot, as it always has a way of doing. :)

 <add ping, nmap :P>

 

Comments (1)

yazhini said

at 3:35 pm on Jul 19, 2007

If anyone has any more how-to's, add them. It's alright if it's only the questions you'd like to add.

You don't have permission to comment on this page.