Some nice Linux tips and Commands

################################################################################## ##############################################################
###################################################################################
Oh well here are some commands and info that I find usefull with
working with my linux box..hope it helps..the ideas are in no particular order.

**Note:The signs " " are not part of the commands**

1.To find out the history of commands you typed in terminal type this in your terminal:
"cat .bash_history"

there should be a bunch of lines there..if you want to delete that info then type:
"rm .bash_history"

2.To find out Your external(internet) ip address..the following should help:
"wget -O - -q www.icanhazip.com" or "curl icanhazip.com"

***EDIT*** it seems the above website is down..but il leave the example above in case it comes back

up..in the mean time we can use this

"wget -O - -q www.findmyip.com | head -18 | tail -1"

3.Some people ask how to clear the screen of older commands that where typed..

well guess what..the command is :
"clear"

You can also press Ctrl+l that should also clear the screen

4.To list files in a directory the command is:
"ls"

now if you have lots of files in a directory they will all scroll by real fast...
so to have them scroll down page by page..I type the following:

"ls | more"

from there You can press ENTER to scroll down.

5.Some file and directory Commands
-To find out which directory Your in..command is:
"pwd"

-To change directory
"cd"

-To move file
"mv" thefile ">" where to move it
example to move a file called "money" to a folder called "wallet" we would type

mv money wallet

-To rename a file
"mv" thefilename newfilename

example to rename a file called MTN to UTL the command would be:

mv MTN UTL

that would change MTN to UTL..

6.Did You know you can play vlc from the command line?..maybe not..well You can

If for exapmle the directory Your in has a song called "Bend over.mp3"

then You can play it from the command line by typing vlc "Bend over.mp3"

or cvlc "Bend over.mp3"

7.Find out what linux issue You are running type command:

"cat /etc/issue"

Find out the kernel You are using type:

"uname -a"

8.Do you ever get tired of typing the same long command?

some thing like "cd /root/Downloads/mymusic/localmusic/bebecool/"

then the command "alias" is for you..in the above example we can do the following

" alias zz='cd /root/Downloads/mymusic/localmusic/bebecool' "

after that all we have to do is type zz and it will take us to that folder..

the alias command is one of my favourite linux commands..the format is

alias = ''

9.To find out connections to the internet + ports used and programs running:

"netstat -antp"

this will show you the established internet connections..help you know what program is taking
your bandwidth..this is useful if your using 3G modems and want to spare your cash..

10.This was written using nano..type in your terminal to find out what it is:

"nano"

without the quotes..

mikeepps@756@gmail.com

################################################################################
#######################################################
################################################################################

To do list after installing Ubuntu

Installing linux is not easy for some and after installing it is usually a new world
to lots of people..

So here is a simple guide to get You on Your feet after installing Ubuntu

the following are the commands to type..in the terminal/console..

(terminal/console=command prompt..for windows users)

all commands begin with sudo

the rest are comments like this #

sudo apt-get update
#will update your system

sudo apt-get upgrade
#will upgrade your sytem if updates are found

sudo apt-get install ubuntu-restricted-extras
#will install some packages that are needed for certain task

#Essential packages

sudo apt-get install vlc
#will install vlc player for you to play your movies/music

sudo apt-get install gimp

#will help with editing pictures

sudo apt-get install gwenview
#for viewing pictures

sudo apt-get install okular
# will help you read pdf's

sudo apt-get install ark
#will help in opening zip,tar and other compressed files

#Optional packages

sudo apt-get install multiget
#this is a download manager download manager
#this will help You with the Downloads

sudo apt-get install kate
#(kde Advanced Text Editor)

#Text editor with special features like code/script highlighting..
#this just a personal choice the are lots of text editors out there..

sudo apt-get install skype..

#what can I say about that it for skype-ing

sudo apt-get install gparted

#this is a partition editor..It comes in handy for partitioning especially in cases
#where You need another partition for another operating system

well this was a quick tutorial to get You started in the world of Ubuntu..

Enjoy Alba's Pic..

Working 3G modem on linux

So I was having a Hard time..Getting My 3G modem to work on an Ubuntu based distro..Distribution..And what helped Me get things working was a shell Script..Called Sakis3g..the website is http://www.sakis3g.org/...

All the necessary instructions on how to install are on the website..

One problem that You may encounter is where it asks for username and password..

If You use one for Your 3g connection then thats where You put them..but most of the 3G connections in Uganda have their USERNAME and PASSWORD fields empty..

For the script to work for such connections You put: USERNAME as user

and PASSWORD as pass..

that should get Your 3G modem working..hope this helps..

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer