Top five Linux lessons for Windows admins

For Windows system administrators, making the leap to introducing Linux systems into their organisations might be a little intimidating at first. But, with a few pointers, administering and supporting Linux is not as difficult as it seems.

Much of my background is in maintaining Windows and NetWare systems. I played with Linux for a while and seriously got into it within the last year. So the five tips that I present below are a direct result of my learning experience.

1. X marks the spot

First, Linux is capable of being administered via either an X windows system such as Gnome or KDE or via the command-line interface, which is what I prefer for most administration tasks. For Windows administrators new to Linux, often the choice is one of the graphical interfaces. I prefer KDE over Gnome because of KDE's tighter component integration and ease of use. In addition, KDE is capable of a more Windows-like look and feel, which will help Windows folks make the transition. While I will be the first to admit that I'm not a master Linux system administrator, having to change the screen resolution via text files for Gnome is an annoyance to me. For that and other reasons, I have chosen to use KDE for my systems.

While all of your end-user Linux desktops will mostly likely need a graphical environment, for some of my systems, I only run it when I need to. For example, when installing a Web server, I generally start and run Apache from the command line and then log out. This allows the system to use the resources that would normally be used by the X services to serve up more Web pages.

2.To vi or not to vi

Regardless of the graphical interface you chose, at some point you will have to use the command line; there is no way to avoid it in Linux. While the vi utility is not the only choice, it is ubiquitous among the UNIX variants and available on every Linux distribution that I am aware of. If you are used to Notepad or Edit under Windows, you'll find that there is a learning curve associated with vi, because it doesn't work like the editors that you are familiar with. However, it is extremely powerful.

Instead of putting the user into an edit mode where he or she starts typing upon loading the file to be modified, vi starts out with the user being placed into command mode. In command mode, vi does nothing but take commands, such as 'i' to insert a new line at the current insertion point of the file or 'w!' to forcefully save the current file. It's not very intuitive.

And the vi utility has a cult following. The Vi Lovers Home Page offers a huge amount of information about this utility.

In addition to vi, there are a number of other popular editors available for Linux including Pico and Emacs. Available on many Linux distributions, Pico is an excellent editor for quickly editing configuration files and is very easy to learn. It's my editor of choice as it is very intuitive. Emacs is another very popular editor available for Linux. It includes online documentation, a number of extensions, and support for many languages.

3. Storing files

Between Windows and Linux, there are some variations to get used to when using files in Linux. First, filenames are case-sensitive in Linux. This means that a file named -readme" is different than a file named -README". This is not the case in Windows. In addition, Linux uses a slash (/) character to traverse directories, while Windows uses the backslash (\). For example, the hosts file in Windows NT/2000/XP is located in C:\winnt\system32\drivers\etc, while in Linux is resides in /etc. Note the lack of a drive letter in the second path. Linux doesn't work on the concept of drives; instead it uses the concept of partitions. For my test lab, I have only one partition named /. However, a common configuration option is to place users' home directories in their own partition named /home.

4. Basic system utilities

Even if you choose to use a graphical interface, you will have to use the command line at some point, probably sooner than you think. When that time comes, knowing a few key system commands will go a long way toward helping you to administer your systems.

Windows

Linux equivalents to common Windows tasks

5. Escape DLL hell, but enter dependency heck

If you have administered Windows systems for any length of time, you have experienced DLL hell. This condition occurs when two separate programs have made an extension to the same common DLL, causing one of the two programs to malfunction because its version of the DLL is not present.

In Linux, the situation is not quite as bad; it's more like dependency heck. While most programs installed in Linux require the use of library files, I haven't run across conflicts like I experience in Windows. The one frustration I do have is installing a new piece of software and finding that I don't have the required libraries installed. Most system libraries are available on the Linux installation CDs and can be installed using RPM, which stands for Red Hat Package Manager. This assumes that you are using an RPM-enabled distribution, of course. To mount the CD-ROM, at the command line, you can type the following:

mount /dev/cdrom

You can switch to it by typing the following:

cd /mnt/cdrom

From there, you can traverse the directory structure of the CD-ROM by using the ls and cd commands. Or, if you are looking for a specific library, use the find command.

Linux serves a purpose

This is a quick primer to give you an idea of some of the things that you will run across as a Windows administrator making your first forays into Linux. I find that using Linux for certain tasks makes a lot of sense, because it has the potential to save a significant amount of money and is secure and stable.

TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to fire walls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.

©2001 TechRepublic, Inc.

Advertisement

Talkback 28 comments

    Sooner of later I am going to have to read up on Linux. My boss keeps talking about Linux a lot lately and we are currently a Windows shop.Anonymous -- 13/05/02

    Sooner of later I am going to have to read up on Linux.

    My boss keeps talking about Linux a lot lately and we are currently a Windows shop.

    If you want an editor to make the typical Windows user feel at home, try nedit. (Short for Nirvana Editor) Of course, it only works on a graphical screen, unlike VI which can work on a text screen just as well.Anonymous -- 14/05/02

    If you want an editor to make the typical Windows user feel at home, try nedit. (Short for Nirvana Editor) Of course, it only works on a graphical screen, unlike VI which can work on a text screen just as well.

    I would offer that one of the things that held me up for a long time when going from Windows to Linux was the name of the master user. In Windows it's "Administrator"... but in most versions of Unix (including Linux), it's "root".Anonymous -- 14/05/02

    I would offer that one of the things that held me up for a long time when going from Windows to Linux was the name of the master user. In Windows it's "Administrator"... but in most versions of Unix (including Linux), it's "root".

    I am a certified MCSE, but I've found that Linux is substantially better than Windows for most networking tasks. I've been 'playing' with Linux for about 2 years, but we began rolling out a lot of Linux systems within the last 6 months. I find Damon Gentry -- 14/05/02

    I am a certified MCSE, but I've found that Linux is substantially better than Windows for most networking tasks.

    I've been 'playing' with Linux for about 2 years, but we began rolling out a lot of Linux systems within the last 6 months. I find that I am migrating as many servers as possible to Linux, even some of our Solaris systems. I typically only see downtime on the Linux systems when I intentially bring them down. I've had systems running now for over a year with no reboot!

    We're running Oracle, BEA Weblogic, and Apache on our Linux systems and we love it! Now, if I can just convince the brass to move to mySQL and JBoss...

    You left out the grep command. This command is too important and should have been included before find. A good intro.Anonymous -- 14/05/02

    You left out the grep command. This command is
    too important and should have been included before
    find.

    A good intro.

    You said: "mount /dev/cdrom You can switch to it by typing the following: cd /mnt/cdrom " Oy, no. Dude, the process you listed is only partially correct. First, you have to create the /mnt/cdrom direcJoe -- 14/05/02

    You said:
    "mount /dev/cdrom

    You can switch to it by typing the following:
    cd /mnt/cdrom "

    Oy, no.

    Dude, the process you listed is only partially correct.
    First, you have to create the /mnt/cdrom directory....
    `mkdir /mnt/cdrom` as root
    Then, you have to mount it properly
    `mount -t iso9660 /dev/cdrom /mnt/cdrom`
    This will work on most systems...the way you listed doesn't even work on Redhat...

    "Linux doesn't work on the concept of drives; instead it uses the concept of partitions." This is not entirely accurate. DOS/Windows also uses the concept of partitions in the sense that a hard drive can be partitioned into multiple partitions, Bill Randle -- 14/05/02

    "Linux doesn't work on the concept of drives; instead it uses the concept of partitions." This is not entirely accurate. DOS/Windows also uses the concept of partitions in the sense that a hard drive can be partitioned into multiple partitions, each of which is assigned a drive letter.

    Unix/Linux uses the conception of mount points. That is, a given disk partition can be mounted (or placed) anywhere in the file system hierarchy. It doesn't have to be mounted at the root directory level (e.g. /, /home, /var, etc.). For example, you could have all your log files in a seperate disk partition mounted under /var as /var/log.

    In general, though, I found the article accurate.

    A correction.a.i -- 29/07/08 (in reply to #120010003)

    Quote

    "DOS/Windows also uses the concept of partitions in the sense that a hard drive can be partitioned into multiple partitions, each of which is assigned a drive letter. "

    Yes they are assigned a drive letter and then Windows treats them as drives!

    Apropos and man are what got me accustomed to Linux. apropos will help you find commands related to your text query, while man will show you the manual page for a command. Find the command, read up on it. Can't be said any easier.Rick Romero -- 14/05/02

    Apropos and man are what got me accustomed to Linux.

    apropos will help you find commands related to your text query, while man will show you the manual page for a command.

    Find the command, read up on it. Can't be said any easier.

    My transiion to Unix/Linux was a somewhat rocky one. Afraid I might destroy my Windows partion and render my Windows PC useless, I delayed installation for 2½ years. I went out and bought a book on Unix, "Learning Unix" (by James GarAnonymous -- 14/05/02

    My transiion to Unix/Linux was a somewhat rocky one.
    Afraid I might destroy my Windows partion and render my Windows PC useless, I delayed installation for 2½ years. I went out and bought a book on Unix, "Learning Unix" (by James Gardner). Learning Unix came with a floppy disk which included MKS Tools (a UNIX simulator for Windows). The book, The floppy disk and a couple of online helpfiles was all I needed.
    A year later I moved over to TOMSRTBT (http://www.toms.net/rb). This package/program is a free, tiny version of Linux which fits unto a single floppy disk and runs entirely in Ram.

    Fear of the unknown and the notion that only GEEKS use Unix/Linux is what probably prevents people from taking the plunge.

    Scared you might destroy valuable data on your Windows PC? Try TOMSRTBT. Better still, get a free UNIX shell account at http://www.freeshell.org

    Besides 'grep' you also missed 'locate'. Most of the linux distros maintan a database with the file locations wich us updated periodicaly. Just type 'locate filename' and you will get the file location in an instant (partial filenames also work). For the Anonymous -- 14/05/02

    Besides 'grep' you also missed 'locate'. Most of the linux distros maintan a database with the file locations wich us updated periodicaly. Just type 'locate filename' and you will get the file location in an instant (partial filenames also work). For the same task 'find' will spend considerably more time, especialy if you do not know the approximate location of the file. You can update the database by typing 'updatedb'.

    A few comments: Rebooting with /sbin/init? Halting with /sbin/halt? Ack!! /sbin/shutdown is the official method. While ps gives a good static look at processes, /usr/bin/top is closest to the NT/2K Task Manager. Emacs iAnonymous -- 14/05/02

    A few comments:

    Rebooting with /sbin/init? Halting with /sbin/halt?
    Ack!! /sbin/shutdown is the official method.

    While ps gives a good static look at processes, /usr/bin/top is closest to the NT/2K Task Manager.

    Emacs is VERY RAM intensive. Only use it if you intend to live in it.

    Someone else already mentioned using /usr/bin/locate instead of /usr/bin/find. find is _much_ more flexible, but for just, well, finding a file, /usr/bin/locate is best.

    You mount a cdrom with "mount /mnt/cdrom".

    You call it Dependency Heck, but many call it RPM Hell. The package manager that comes with Debian-based systems (Progeny is the "newbie-friendly" version of debian) is much more sophisticated, and thus eliminates all dependency problems.

    _All_ of the commands that Scott Lowe says must be used at the command line have GUI counterparts in KDE, and many have Gnome analogs.

    Gnome is "lighter" than KDE. KDE is very resource intensive, but _very_ easy to use.

    I think 'joe' is a better editor than 'pico', for new users. I use it pretty much for everything, even though I find my way around 'vi' and 'pico' too. The best way to learn linux is just to use it. I'd even suggest administrators to stay away fAnonymous -- 14/05/02

    I think 'joe' is a better editor than 'pico', for new users. I use it pretty much for everything, even though I find my way around 'vi' and 'pico' too.

    The best way to learn linux is just to use it. I'd even suggest administrators to stay away from X the first few months, and only use the commandline. Learn its power.

    Making the move from Windows? Check out this book: "Linux for Windows NT/2000 Administrators" ISBN # 0782127304 This book helped me get my footing in the early days.Daniel Hatfield -- 14/05/02

    Making the move from Windows? Check out this book: "Linux for Windows NT/2000 Administrators"

    ISBN # 0782127304

    This book helped me get my footing in the early days.

    Storing Files needs a better explanation. The difference between Windows and Linux is how they handle partitions. Windows assigns each partition a unique drive letter, and while most of us have grown up with this model, it's actually qRodd Clarkson -- 14/05/02

    Storing Files needs a better explanation.

    The difference between Windows and Linux is how they handle partitions.

    Windows assigns each partition a unique drive letter, and while most of us have grown up with this model, it's actually quite a badly thought out model, and can create real havoc when you move drives around.

    Linux on the other hand uses a single tree model, starting at '/' and branching down (up??). Every partition is mounted in the tree somewhere. For example, a partition used for user's home directories might be mounted under /home. Exported filesystems are treated the same way with NFS and SMB mounts merged into the tree, making the file system a single unit.

    The use of the tree model means that the drive containing a partition can be moved to another IDE channel, or even another machine without getting assigned a different (seemingly random) drive letter. This means that when you file/web server becomes too small to handle all the load, a new machine can be built to handle part of the load (say the home directories) and then these directories can be merged back into the original tree without the users ever knowing.

    It's a very different model then the Windows one, but it's extremely powerful and extremely simple to understand

    Nice to see some positive words from the Windows world. One other thing your readers might like to know is that the Linux community is a huge resource. Lots of folks out there who are more than willing to help. You always have a safety net.Paul Tatham -- 14/05/02

    Nice to see some positive words from the Windows world. One other thing your readers might like to know is that the Linux community is a huge resource. Lots of folks out there who are more than willing to help. You always have a safety net.

    You say "man..." In practice, this is no enough. to my taste and on RPM based distros, getting info includes at least 3 steps: 1) man; 2) info; 3) docs from the package (which; rpm -qf; rpm -ql).Anonymous -- 14/05/02

    You say "man..." In practice, this is no enough. to my taste and on RPM based distros, getting info includes at least 3 steps: 1) man; 2) info; 3) docs from the package (which; rpm -qf; rpm -ql).

    "Escape DLL hell, but enter dependency heck" well, use Debian and you will escape that too, but encounter other oddities ;) In my opinion, Debian is the best server-os. Not a very graphic install, but you only install once ;)Anonymous -- 14/05/02

    "Escape DLL hell, but enter dependency heck" well, use Debian and you will escape that too, but encounter other oddities ;) In my opinion, Debian is the best server-os. Not a very graphic install, but you only install once ;)

    Where have you been this last year? I admit it is a good broad-view introduction, but things have changed now! (for the better of course :-) I don't know many distros, but what I can tell is: - Debian's APT tools and Mandrake's URYves Gablin -- 14/05/02

    Where have you been this last year?

    I admit it is a good broad-view introduction, but things have changed now! (for the better of course :-)
    I don't know many distros, but what I can tell is:

    - Debian's APT tools and Mandrake's URPM tools solve the problem known as "dependency hell", while maintaining the packages' good point: suppressing the conflicts.

    - Almost everything can be done graphically. In Mandrake, I use the command line *only* because I want to, and I'm more efficient with it. But there are graphical tools for administering startup-services, servers (http, mail, file, print...), users, partitions, mount points, tea time, and what else...

    - Ah yes: accessing the removable medias (CD, floppies, ZIP...) is now automatic. Dependant on the distro you choose, it works like a Mac (the icon appears, and disapears with mouse commands, and you don't use the eject button at all) or like in Windows (the icon is always there and when you click... it depends on if there is a CD... and if you eject... hope you know what you do)

    I don't have much more ideas to tell, but really, things have changed.

    Yves.

    N.B. I don't like emacs. It's too big and unintuitive. ;-) you can shoot me for this ;-)

    I agree about debian apt pkg management is the way to go on linux, vi grows on you...and as you grow you might want to try some of the other free unix's freebsd, openbsd, netbsd...etc...use several different types of remote access interfaces...gui vnc ( aArt I. -- 14/05/02

    I agree about debian apt pkg management is the way to go on linux, vi grows on you...and as you grow you might want to try some of the other free unix's freebsd, openbsd, netbsd...etc...use several different types of remote access interfaces...gui vnc ( any OS !!! to any OS !! no matter the gui ) browers webmin, ...enjoy as the journey has begun....

    Look for "The Linux newbie guide" on google. I've found it to be good starting point which covers a lot of stuff. As for the GUI if I can't avoid it I tend to use black box and forward the X session to it. It's very lean and fast.Anonymous -- 14/05/02

    Look for "The Linux newbie guide" on google.
    I've found it to be good starting point which covers a lot of stuff.

    As for the GUI if I can't avoid it I tend to use black box and forward the X session to it. It's very lean and fast. (a bit like terminal windows,
    for the Microsofties).

    As for just trying it or rescuing a system use
    Linux BBC (www.lnx-bbc.org) it's a full distro on a bootable CD.

    And for keeping your system up to date use autorpm, it will checks for updates overnight,
    downloads them (if you want) and check validity
    of the RPM.

    BTW, RPM was renamed Rpm Package Manager

    Dom
    sysdamin

    Some random thoughts: --use Nano as a PICO replacement --get comfy with the command line first, then go GUI. --set aliases in your .bashrc file for DOS command names to Linux commands. It makes the transition easier. --keep a &quJeff Costa -- 14/05/02

    Some random thoughts:

    --use Nano as a PICO replacement
    --get comfy with the command line first, then go GUI.
    --set aliases in your .bashrc file for DOS command names to Linux commands. It makes the transition easier.
    --keep a "cheat sheet" of everything you discover and write it down for future reference

    What served before Windows and Netware served? UNIX and mainframes. It should be a basic skill for ANYONE that has to administer a network to have a basic working understanding of *NIX; routers work on telnet; basic *NIX commands are inherent to the Stephen M. Kuhn -- 14/05/02

    What served before Windows and Netware served?
    UNIX and mainframes. It should be a basic skill for ANYONE that has to administer a network to have a basic working understanding of *NIX; routers work on telnet; basic *NIX commands are inherent to the workings of the Internet. Even if someone were JUST and MCSE, they should be qualified enough to understand the basics as they will HAVE to use or access a *NIX box eventually.

    Wrong #1 lesson, lesson #1 is that your last resort is to reboot a linux box, not your first.Anonymous -- 15/05/02

    Wrong #1 lesson, lesson #1 is that your last resort is to reboot a linux box, not your first.

    Did you hear about Midnight Commander ??? If you're used to the famous Norton Commander for DOS, you will know how it looks. It's a console-based file manager and archive browser with a very intuitive built-in text editor. Using it is Anonymous -- 16/05/02

    Did you hear about Midnight Commander ???

    If you're used to the famous Norton Commander for DOS, you will know how it looks.

    It's a console-based file manager and archive browser with a very intuitive built-in text editor. Using it is adopting it, this is guaranteed !!!

    I use it EVERY day :-)

    DLL Hell? Not with Debian's APT, and with Debian GNU/Linux 3.0 (woody) just around the corner, there's no better time to make the switch :) Check out http://www.debian.org and buy your CDs at http://www.everythignlinux.com.auSam Johnston -- 16/05/02

    DLL Hell? Not with Debian's APT, and with Debian GNU/Linux 3.0 (woody) just around the corner, there's no better time to make the switch :)

    Check out http://www.debian.org and buy your CDs at http://www.everythignlinux.com.au

    man is not enough!!!... mail 2 pardeepchahal@yahoo.co.in , i feel happy if i could help anybody.... pradeep singh chahal (a newbie on redhat)pradeep singh chahal -- 24/12/02

    man is not enough!!!... mail 2 pardeepchahal@yahoo.co.in , i feel happy if i could help anybody....

    pradeep singh chahal
    (a newbie on redhat)

    man is not enough!!!... mail 2 pardeepchahal@yahoo.co.in , i feel happy if i could help anybody.... pradeep singh chahal (a newbie on redhat)pradeep singh chahal -- 24/12/02

    man is not enough!!!... mail 2 pardeepchahal@yahoo.co.in , i feel happy if i could help anybody....

    pradeep singh chahal
    (a newbie on redhat)

Add your opinion


Latest Videos

Blogs

  • David Braue Will Rudd's bush backhaul bonanza deliver?
    Rural areas will be welcoming the government's decision to put its money where its politicising is, funnelling $250m into a regional fibre upgrade to six rural centres. Remedying over a decade of near-neglect at the hands of telecoms privatisation, the investment could be the firmest step yet for Labor's NBN dream — but with inevitable political questions and a looming election, Rudd and Conroy need to deliver, and quickly, to preserve the NBN's credibility.
  • Array Doing for AV what VoIP did for telephony
    Sydney-based start-up Audinate is making traditional analog cabling obsolete in favour of TCP/IP-based networking technology. And it's doing a pretty good job so far, with its technology used by World Youth Day and the Sydney Opera House.
  • Array WiMax in Australia: Part two
    WiMax could be the standard that drives the next phase of mobile broadband, it provides an opportunity for players wanting to establish a pure IP network to carry voice and data effectively — but is this what operators want?
  • More blogs »

Tags

Back to top

Featured