me , myself and linux.

Friday, December 09, 2005

Come, have a quickie.

Who doesnt love quickie? we all are fans of 5 minute guide, blah blah in 21 days, and what not.

so how about a quick one with linux? how do files show up in linux, how to copy, move, delete, save files in linux. what is command updatedb do, how to make a default file index, as if a google desktop search inbuilt into linux, and use it. and all the stuff you would like to know in straight 10-15 minutes.

Visit learnUNIXin10minutes.html . The author does a great job simplifying things for a new user (polularly called as newbie, noob).

My favourite commands you would also like to use are (to be used on command like popularly known as CLI command line interface).

1) "who" -> shows you how many users are currently logged into linux (linux is a multiple user/terminal enviornment platform.)

2)"uname -a " -> shows complete information of linux operating system, with kernel version, system date, uptime and load average etc.

3) "top" -> this is like "task manager" ala in windows os. but top works great in command line. shows you all processes running in real time.

4) "cat /etc/*release*" -> works in many linux softwares, shows you the Brand/Distribution name of linux you have installed.

5) "ps -ef" -> process running on your system, which user is running it, the path of the file its running, time it has been running, cpu, mem usage its taking. and process id. many admins use it with grep "app/process name" to get short/easy result.

6) "wget http://downloadfilelink" -> wget is like downloader, from command line. there is proper downloader like d4x but wget is very good one, "curl" command is another good option.

7) "vi /path/filename" -> sweet little editor, you can cut/copy/paste/delete with lots of key combination, for e.g:- press "8" and "D" key two times, 8 lines from your current like will be cut in clipboard, if you move to other lines above or below, and press "P" key, the eight lines will be pasted.

8) "rm /path/filename" -> this is one dangerous command, you can even manage to delete entire partition without getting any warnings.

9) "touch /path/filename" -> this just creates a empty file on given path, with zero content, quite good if you get script errors for missing file etc.

10) "locate anyfilename" -> to make this command work, you will need slocate installed (which is present mostly in any default installation) and run command "updatedb" as root (main admin) user. the updatedb command builds a fast searchable index of all files and their locations in entire linux operating system. so when you do "locate somefilename" it will search the database and give you all results. its like inbuilt google desktop search. :) (without the gui stuff ofcourse).

that was my quick top ten commands to use when using linux.

just for someone who wants more than quickie. some links for you. go, enjoy.

0 Comments:

Post a Comment

<< Home