≡ Menu

50 UNIX / Linux Sysadmin Tutorials

Merry Christmas and Happy Holidays to all TGS Readers.

To wrap this year, I’ve collected 50 UNIX / Linux sysadmin related tutorials that we’ve posted so far. This is lot of reading. Bookmark this article for your future reference and read it whenever you get free time.

  1. Disk to disk backup using dd command: dd is a powerful UNIX utility, which is used by the Linux kernel makefiles to make boot images. It can also be used to copy data. This article explains how to backup entire hard disk and create an image of a hard disk using dd command.
  2. 15 rsync command examples: Every sysadmin should master the usage of rsync. rsync utility is used to synchronize the files and directories from one location to another. First time, rsync replicates the whole content between the source and destination directories. Next time, rsync transfers only the changed blocks or bytes to the destination location, which makes the transfer really fast.
  3. Three sysadmin rules: If you are a sysadmin, you can’t (and shouldn’t) break these three sysadmin rules.
  4. User and group disk quota: This article explains how to setup user and group quote with soft limit, hard limit and grace period. For example, if you specify 2GB as hard limit, user will not be able to create new files after 2GB.
  5. Troubleshoot using dmesg: Using dmesg you can view boot up messages that displays information about the hardware devices that the kernel detects during boot process. This can be helpful during troubleshooting process.
  6. RPM package management examples: 15 examples provided in this article explains everything you need to know about managing RPM packages on redhat based system (including CentOS).
  7. 10 netstat examples: Netstat command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc.,
  8. Manage packages using apt-* commands: These 13 practical examples explains how to manage packages using apt-get, apt-cache, apt-file and dpkg commands.
  9. Modprobe command examples: modprobe utility is used to add loadable modules to the Linux kernel. You can also view and remove modules using modprobe command.
  10. Ethtool examples: Ethtool utility is used to view and change the ethernet device parameters. These examples will explain how you can manipulate your ethernet NIC card using ethtool.
  11. NFS mount using exportfs: This is a linux beginners guide to NFS mount using exportfs. This explains how to export a file system to a remote machine and mount it both temporarily and permanently.
  12. Change timezone: Depending on your Linux distribution, use one of the methods explained in this article to change the timezone on your system.
  13. Install phpMyAdmin: phpMyAdmin is a web-based tool written in PHP to manage the MySQL database. Apart from viewing the tables (and other db objects), you can perform lot of DBA functions through the web based interface. You can also execute any SQL query from the UI.
  14. Setup squid to control internet access: Squid is a proxy caching server. You can use squid to control internet access at work. This guide will give a jump-start on how to setup squid on Linux to restrict internet access in an network.
  15. Add new swap space: Use dd, mkswap and swapon commands to add swap space. You can either use a dedicated hard drive partition to add new swap space, or create a swap file on an existing filesystem and use it as swap space.
  16. Install and configure snort: Snort is a free lightweight network intrusion detection system for both UNIX and Windows. This article explains how to install snort from source, write rules, and perform basic testing.
  17. Register RHEL/OEL linux to support: If you have purchased support from Oracle for your Linux, you can register to oracle support network (ULN) using up2date as explained here.
  18. tftpboot setup: You can install Linux from network using PXE by installing and configuring tftpboot server as explained here.
  19. Delete all iptables rules: When you are starting to setup iptables, you might want to delete (flush) all the existing iptables as shown here.
  20. Disable ping replies: Someone can flood the network with ping -f. If ping reply is disabled as explained here we can avoid this flooding.
  21. Block ip address using fail2ban: Fail2ban is a intrusion preventon framework that scans log files for various services ( SSH, FTP, SMTP, Apache, etc., ) and bans the IP that makes too many password failures. It also updates iptles firewall rules to reject these ip addresses.
  22. Package management using dpkg: On debian, you can install or remove deb packages using dpkg utility.
  23. Alfresco content management system: Alfresco is the best open source content management system. Everything you need to know to install and configure Alfresco is explained here.
  24. Bugzilla bug tracking system: Bugzilla is the best open source bug tracking system. Everything you need to know to install and configure Bugzilla is explained here.
  25. Rpm, deb, dpot and msi packages: This article explains how to view and extract files from various package types used by different Linux / UNIX distributions.
  26. Backup using rsnapshot: You can backup either a local host or remote host using rsnapshot rsync utility. rsnapshot uses the combination of rsync and hard links to maintain full-backup and incremental backups. Once you’ve setup and configured rsnapshot, there is absolutely no maintenance involved in it. rsnapshot will automatically take care of deleting and rotating the old backups.
  27. Create Linux user: This article explains how to create users with default configuration, create users with custom configuration, create users interactively, and creating users in bulk.
  28. Mount and view ISO file: ISO files are typically used to distribute the operating system. Most of the linux operating system that you download will be on ISO format. This explains how to view and mount any ISO file both as regular use and as root user.
  29. Manage password expiration and aging: Linux chage command can be used to perform several practical password aging activities including how-to force users to change their password.
  30. ifconfig examples: Interface configurator command ifconfig is used to initialize the network interface and to enable or disable the interfaces as shown in these 7 examples.
  31. Oracle db startup an sthudown: Every sysadmin should know some basic DBA operations. This explains how to shutdown and start the oracle database.
  32. PostgreSQL install and configure: Similar to mySQL, postgreSQL is very famous and feature packed free and open source database. This is a jumpstart guide to install and configure postgresql from source on Linux.
  33. Magic SysRq key: Have you wondered what the SysRq key on your keyboard does. Here is one use for it. You can safely reboot Linux using the magic SysRq key as explained here.
  34. Wakeonlan Tutorial: Using Wakeonlan WOL, you can turn on the remote servers where you don’t have physical access to press the power button.
  35. List hardware spec using lshw: ls+hw = lshw, which lists the hardware specs of your system.
  36. View hardware spec using dmidecode: dmidecode command reads the system DMI table to display hardware and BIOS information of the server. Apart from getting current configuration of the system, you can also get information about maximum supported configuration of the system using dmidecode. For example, dmidecode gives both the current RAM on the system and the maximum RAM supported by the system.
  37. Use the support effectively: Companies spend lot of cash on support mainly for two reasons: 1) To get help from vendors to fix critical production issues 2) To keep up-to-date with the latest version of the software and security patches released by the vendors. In this article, I’ve given 10 practical tips for DBAs, sysadmins and developers to use their hardware and software support effectively.
  38. Install/Upgrade LAMP using Yum: Installing LAMP stack using yum is a good option for beginners who don’t feel comfortable installing from source. Also, Installing LAMP stack using yum is a good choice, if you want to keep things simple and just use the default configuration.
  39. Template to track your hardware assests: If you are managing more than one equipment in your organization, it is very important to document and track ALL information about the servers effectively. In this article, I have listed 36 attributes that needs to be tracked for your equipments, with an explanation on why it needs to be tracked. I have also provided a spreadsheet template with these fields that will give you a jumpstart.
  40. Disable SELinux: If you don’t understand how SELinux works and the fundamental details on how to configure it, keeping it enabled will cause lot of issues. Until you understand the implementation details of SELinux you may want to disable it to avoid some unnecessary issues as explained here.
  41. Install PHP5 from source: This is a step-by-step guide to install PHP5 from source on UNIX environment.
  42. Install MySQL from source: This is a step-by-step guide to install MySQL from source on UNIX environment.
  43. Launch Linux clients on windows: If you are using SSH client to connect to Linux server from your Windows laptop, sometimes it may be necessary to launch UI application on the remote Linux server, but to display the UI on the windows laptop. Cygwin can be used to install software on Linux from Windows and launch Linux X client software on Windows.
  44. IPCS: IPC allows the processes to communicate with each another. The process can also communicate by having a file accessible to both the processes. Processes can open, and read/write the file, which requires lot of I/O operation that consumes time. This explains different types of IPCS and provides 10 IPCS command examples.
  45. Logical Volume Manager: Using LVM we can create logical partitions that can span across one or more physical hard drives.You can create and manage LVM using vgcreate, lvcreate, and lvextend lvm2 commands as shown here.
  46. 15 Tcpdump examples: tcpdump is a network packet analyzer. tcpdump allows us to save the packets that are captured, so that we can use it for future analysis. The saved file can be viewed by the same tcpdump command. We can also use open source software like wireshark to read the tcpdump pcap files.
  47. Manage partition using fdisk: Using fdisk you can create a maximum of four primary partition, delete an existing partition, or change existing partition. Using fidsk you are allowed to create a maximum of four primary partition, and any number of logical partitions, based on the size of the disk.
  48. VMWare fundamentals: At some point every sysadmin should deal with virtualization. VMWare is a very popular choise to virtualize your server environment. This article will provide the fundamental information for you to get a jumpstart on VMWare.
  49. Rotate the logs automatically: Manging log files is an importat part of sysadmin life. logrotate make it easy by allowing you to setup automatica log rotation based on several configurations. Using logrotate you can also configure it to execute custom shell scripts immediately after log rotation.
  50. Passwordless SSH login setup: Using ssh-keygen and ssh-copy-id you can setup passwordless login to remote Linux server. ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host’s public key to the remote-host’s authorized_keys file.

We’ll be posting lot of Linux sysadmin related tutorials in the upcoming months. Make sure to subscribe to our blog to receive those tutorials.

Add your comment

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

Comments on this entry are closed.

  • Pushpraj December 25, 2010, 3:08 am

    Very Nice…All in one click…
    I think it will be good if we get more articles in new year on other topics like virtualization specially KVM and Vmware, Cloud Computing, Selinux, LVM, Open LDAP, Network Security…etc..

    Anyway Merry Christmas and keep writing….:)


  • cmcanulty December 25, 2010, 9:01 am

    Thanks, what a nice Christmas present!

  • Jim D December 25, 2010, 9:37 am

    Very nice…. Thank you!

  • Debianero December 26, 2010, 12:53 pm

    Merry Christmas and Happy New Year to all!

  • Imran December 27, 2010, 1:20 am

    I dont find any words to thank u for all your g8 work.
    just can say may GOD give u the best.

  • matrix December 27, 2010, 9:11 am

    Thank you

  • flakak December 28, 2010, 9:22 am

    using dd for backup is not good idea. Using incremental backups is way better.
    Please, do not advise people, to not to use ifconfig. It is obsolete for about 12 years now, and it should not be used anymore. Ifconfig doesn’t even function properly in some cases. It’s much better to use ip command from iproute2.

  • j December 30, 2010, 8:44 am

    awesome list. bookmarked

  • Sachin January 4, 2011, 1:40 am

    nice collection and very helpful …just bookmarked…thanks

  • Anil Rathod January 10, 2011, 3:38 am

    Thank You Sir.

  • Ammar Saif January 13, 2011, 2:41 am

    Really informative & helpful…. Thnx indeed 🙂

  • Ola February 10, 2011, 3:57 am

    Home users are sysabmins as well – even if they don’t know it. Is there an easy basic text for home-sysadmins w. hands on examples? If there isn’t shoudn’t there be one?

  • Robert Murillo February 14, 2011, 3:36 pm

    Excellent Tutorials!!!!!

  • saiful March 3, 2011, 12:41 pm

    gr8 works pal.!!

  • patrixsk March 17, 2011, 12:09 pm

    PERFECT !!!

  • Hima June 23, 2011, 7:11 am

    Thank You sir ,
    The information is very useful

    Thanks alot Sir,,,

  • sandeep September 19, 2011, 6:01 am

    great stuff,this stuff is very usefull who want work on linux os………..

  • saif September 22, 2011, 4:10 am

    Excellent Tutorial dude
    Its very useful for Linux Admins
    Thanks alot

  • Ben February 5, 2012, 11:58 am

    I grew up as a UNIX admin back in the early 90’s. I must say I’ve been away from it for over 10 years and forgot much. Your website and efforts here are a priceless asset. Thank you!

    Keep up the awesome work.

  • fuller suppend February 20, 2012, 10:25 am

    This is what I needed for, many thanks for the effort@

  • siva February 21, 2012, 11:31 am

    Really nice and very useful site for us.
    Thanks a lot.

    we lot more need about scripting, kindly do the needful.

  • LDN October 17, 2012, 12:38 pm

    Great job guys!!!!

  • Pradeep October 26, 2012, 11:46 pm

    Really Thanks for maintaining these type of blogs… I gained which i want the knowledge.. thanks.

  • J Mahendran February 22, 2013, 1:54 pm

    great work, thanks for the contribution

  • Shadrach March 20, 2013, 12:14 am

    great stuff. thanks

  • ken May 23, 2013, 10:44 am

    Thanks Ramesh for writing this and sharing it.

    One of the best collection.!!

  • SKG June 4, 2013, 1:10 am

    Really Nice collection

  • Murali July 2, 2013, 9:05 am

    Thank You
    you done a great job this is very useful
    to me thanks a lot

  • Ashok September 7, 2013, 4:48 am

    Thanks a lot Ramesh

  • Ram niwas October 4, 2013, 3:57 am

    Thanks a lt

  • vaishali jhalani February 12, 2014, 12:05 pm

    sir,i want to know that how to make a kernel image to boot a virtual kernel image on linux.

  • Prasan February 20, 2014, 6:07 am

    Its great

  • param April 7, 2016, 3:07 am

    good examples with detailed explantion

  • Selami koclu May 31, 2016, 9:17 am

    Very good efforts for linux admins. Thank you very much.

  • Alejandro February 17, 2017, 4:05 am

    Awesome combination of tutorials and tricks. Thanks!