PDA

View Full Version : Highly useful Linux commands & configurations


Mrkvonic
February 16th, 2007, 05:50 AM
Hello,

Guys & gals, you will certainly love this!

I have uploaded the article that explains, step-by-step, the most crucial commands and configurations a Linux user might encounter or need, including compilation from sources, installation of drivers, network and printer sharing and more.

In detail:

- Basic tips - avoiding classic mistakes.
- Commands - an introduction to the command line.
- Installation of software - including extraction of archives and compilation of sources.
- Installation of drivers - including compilation, loading, configuration, and addition of drivers to the bootup chain, writing of scripts and addition to the bootup chain.
- Mounting of drives - including NTFS and FAT32 filesystems and read/write permissions.
- Installation of graphic card drivers - including troubleshooting of stubborn common problems.
- Network sharing - how to access shared folders in Windows and Linux from one another.
- Printer sharing - how to share printers in Windows and Linux from one another.
- Some other useful commands.

http://www.dedoimedo.com/computers/linux_commands.html

Feedback is appreciated.

Enjoy!

Mrk

rdsu
February 16th, 2007, 05:59 AM
Thanks for sharing...

One day, when I change to Linux, could be useful... ;)

Meriadoc
February 16th, 2007, 06:08 AM
Some useful stuff here:thumb:

Nick Rhodes
February 16th, 2007, 06:18 AM
Hi,

Thats a neat guide, I have done most of the things (all drivers auto detected fine on my machine) in that guide recently when I installed Linux again.

What might be worth mentioning in a short sentance/diagram is the tree structure of the file system, as I know a number of people who dont realise that its different to Windows at first.

Also that Drives are called hda hdb etc and partitions are the numbers added t o the drive name, eg hda1 hda2 are the first and 2nd partitions on the drive.

Also, is it worth mentioning about creating swap partitons ?

On the installation of software, everyone should try the order 1 > 2 > 3 and if possible submit the updates back to the distro maintainers if possible if doing steps 2 or 3, so that the rest of the community will benifit.

trickyricky
February 16th, 2007, 06:21 AM
That looks really useful. I'll have a read when I get the time, but it should help many newbies and older hands too.

Many thanks!

Mrkvonic
February 16th, 2007, 06:22 AM
Hello,

Regarding file system and notations, I have already written about in detail in the other articles - Installing SUSE Linux and Installing Kubuntu Linux. If you read them by chronological order, you'll realize they are progressive, with slight extra challenge added every time.

I did it on purpose. Users should first try SUSE / Ubuntu, get familiar with Linux, then dabble a bit with Slackware, get into some moderate-difficulty distros, then start playing and tweaking with configurations files.

As to the feedback to developers, that goes without saying...

Anyhow, thanks for the feedback.

Cheers,
Mrk

eyes-open
February 16th, 2007, 08:07 AM
Well presented as always Mrk :thumb:

I was indexing some of my links when I came across this one. It lists Windows programs and their counterparts for Linux. Maybe someone will find it useful .......... The information was last updated on 4th Dec,2006 and is available in several languages:-

Russian, Italian, Spanish, French, German, Hungarian, Chinese.

Comparitive programs for Linux Users (http://www.linuxrsp.ru/win-lin-soft/table-eng.html)

iceni60
February 16th, 2007, 11:51 AM
/sbin isn't in all distros paths so with ifconfig and fdisk some distros need them run like this -

/sbin/ifconfig
/sbin/fdisk

also, you can get a process's id with this command -

pidof process_name

sometimes there are more then one instants of the process you want to kill, the output of pidof will give the processes in the order they started. also, i always kill a process with this command -

kill -9 process_id, without the 9 option it might not be killed, i think :dry:

you can just do this to kill a process though -

killall process_name it will kill everything with that name though.

Nick Rhodes
February 16th, 2007, 12:06 PM
{QUOTE-> Hello,

Regarding file system and notations, I have already written about in detail in the other articles - Installing SUSE Linux and Installing Kubuntu Linux. If you read them by chronological order, you'll realize they are progressive, with slight extra challenge added every time.

I did it on purpose. Users should first try SUSE / Ubuntu, get familiar with Linux, then dabble a bit with Slackware, get into some moderate-difficulty distros, then start playing and tweaking with configurations files.

As to the feedback to developers, that goes without saying...

Anyhow, thanks for the feedback.

Cheers,
Mrk <-QUOTE}

Makes sense, I skipped the SUSE/Ubuntu stuff, will have a look through them later.

It might be worth mentioning pre requisites, or the order to read stuff in, as it was not obvious to me.

Good work !

Alphalutra1
February 16th, 2007, 03:51 PM
Great, only one little addition:

Instead of just blindly typing in ./configure, make sure to read INSTALL or README as they are almost always included in the sources tarball. Then, you can add options to configure depending on what the install told you to make it more customized to your system or include the feature you want.

Cheers,

Alphalutra1

Mrkvonic
February 16th, 2007, 05:31 PM
Hello,
Alpha, that's one step ahead of the intended idea delivered.... :)
Sure, you can compile -ansi -pedantic etc...but that's lesson 4.
Mrk

Pedro
February 16th, 2007, 05:58 PM
pedantic who?

Thank you as always. I'll probably print it :)
You're making this transition smoother:thumb:
You, Alphalutra1 and Iceni60 made want to swap. I had it in mind, but you explained more clearly the advantages. And repeated, and repeated. Thanks to the trio!
But Mrk has the documentation, congratulations are in order! Keep up the great work:thumb:

Mrkvonic
February 16th, 2007, 06:01 PM
Hello,
Thanks everyone, for your feedback. Regarding the more subtle options, you have definitely provided me with some ammo for a sequel :)
As to new converts, well, you get another month of life for every one you make - or rather make make install :)
Mrk

Pedro
February 16th, 2007, 07:37 PM
The link to "Some Useful Linux Commands" seems very good, the others, because of the audience you're targeting, may not be so good. Maybe add them in the bottom of the page;D .
A-Z doesn't help that much. The best help would categorize by uses, like, unpacking/ basic navigation comands... / copying and related... You know, when you get stuck, and have a way to look it up by categories. That's why the one above is good.

Just another perspective (from the audience)

Also, i don't remember how i got these bookmarks, maybe your own site... you could take a peak, for possible links:

http://www.tldp.org/guides.html
http://www.freeos.com/articles/3102/
http://www.reallylinux.com/

edit- i'm refering to the comands part; From there to the end, the links are to the point, and very good. I'm only refering to this part:
{QUOTE-> Below you can find links to some of the basic Linux commands:

Alphabetic Directory of Linux Commands
An A-Z Index of the Linux BASH command line
LinuxCommand.org
Some Useful Linux Commands <-QUOTE}

iceni60
February 17th, 2007, 04:03 AM
here are some more useful help commands to go with the man and --help ones from the link (i'll use firefox as an example)

you can also do info

man firefox
firefox --help
info firefox (try info info to learn how to use it, or info man or man man or man info ;D)

you can get a decription of the man page with this below, it will tell you in a sentence about the file -
whatis firefox


to find out which man pages mention your search word you can use apropos
apropos firefox
or
man -k firefox they give the same results

here's an online book about linux -
http://rute.2038bug.com/index.html.gz

here are the man pages online -
http://www.die.net/doc/linux/man/

here are some more links -
http://www.linux.com/
http://linuxhelp.blogspot.com/
http://www.unix-tutorials.com/
http://www.yolinux.com/TUTORIALS/
http://www.learninglinux.com/HOWTO/HOWTO-INDEX/index.html
http://linuxgazette.net/ and this http://tldp.org/LDP/LGNET/archives.html
http://www.linuxjournal.com/xstatic/magazine/archives
http://lwn.net/Archives/

i really like this link, but it's down atm :( -
http://www.linux-tutorial.info/
here's the cached version -
http://209.85.165.104/search?q=cache:JNNuhqyHjOgJ:www.linux-tutorial.info/+linux+tutorial&hl=en&ct=clnk&cd=1&gl=uk

Mr2cents
February 18th, 2007, 07:17 AM
Thanks for posting this. Your tutorial is very helpful to a newbie to linux like myself. I really appreciate the hard work you've put in producing these tutorials.

A little off topic, thanks for providing the link to the dude located in Salt Lake City, who thinks he's a pirate.. I read several of his articles, and have never laughed so hard. I enjoy reading websites like his, and all the hate mail he gets. LOL.

Mrkvonic
February 18th, 2007, 09:46 AM
Hello,
Ontopic, thanks.
Offtopic, Maddox is a legend.
Mrk

Pedro
February 18th, 2007, 12:26 PM
off topic: some of his writings are...:-X ... lets just say not right. Keep reading. My opinion.