Thursday, 4 February 2016

10 good reasons why you should install Gnu/linux

10 good reasons why you should install Gnu/linux, In the end, you can decide for yourself whether they're reason enough to migrate from other operating systems.



 1: Viruses/malware

This reason is always at the top of my list. Sometimes we don't focus on the things about the virus/malware while installing unknown software or inserting flash drive in USB, you can't know where they're getting those applications or attachments from. You can make sure those machines have antivirus and anti-spyware, but why even take the chance? When you are using the Gnu/Linux operating system, this concern becomes moot.

 

2: Security

This can be summed up easily. If you don't give any one the root password, they can't run with root privileges. Of course, you hit a little snag when using a distribution like Ubuntu. For any sudo-based operating system, you will need to edit the /etc/sudoers file to give user privileges they need.

 

3: Cost effectiveness

Let's say you have a younger user who is getting a hand-me-down machine that needs an OS reinstall. If you don't have that copy of Windows around, you're stuck purchasing a new copy. This can also be applied to any number of applications you might have to pay for. Avoid these costs altogether by handing that child the same machine running Gnu/Linux. You won't have pay for the OS license or any application that child might need or want. On top of that, they'll have the Add/Remove Software tool ,where they can hunt around and find just about anything they would need... all on their own! You can also run a modern distribution on much less hardware than you will need for Vista or Windows 7.

 

4: Age-specific tools

Did you know there are distributions/software groups designed specifically for young adults and children? There is Sugar, geared for K-6, Edubuntu, for ages 3-18, LinuxKidX, for ages 2-15, Foresight Kids, for ages 3-12, and many others. These age-specific tools are well suited for the group they target with graphics and language tuned for the age range. And some of the distributions geared specifically for younger kids lock the operating system down tightly so that only certain tasks can be run.

 

5: Netbooks / Low-end configuration devices

The Gnu/Linux operating system can run on low configuration devices and netbooks. You can install either a full-blown OS or a netbook-specific OS, along with whatever software you need on the netbook, making it an excellent choice for you. Gnu/Linux runs with no lag on low configuration or old Pc's. Puppy Linux can run on 333MHz CPU and 64MB Disk Spac. However having 256MB RAM and a 512MB swap file is more realistic.

 

6: Agile learners

If you put a Linux-based machine in front of a young user, you won't hear complaints like, "Why can't it run Quicken!" or "I need my custom payroll app to run on this!" Most of the people will master the Linux operating system quickly (and adroitly), with a minimal learning curve. Young minds adapt so well, you won't have any trouble adjusting to any differences. You could probably sit with a Gentoo box running CDE or AfterStep and in less time it took you to know what Linux means.

 

7: Staying in step

I know this one will bring out the ire in many readers. I'm not saying any operating system is used more than any other. But Linux is used worldwide. Many countries as a whole have adopted Linux. The future of Linux is very bright — and it seems to be getting brighter. So why not give you a head start on what could possibly be the future of the PC? This also applies for those fledgling IT pros out there. If Windows is so user friendly, you spending most of their time on Linux should have no problem grasping Windows. Gnu/Linux passes 1600 Games which competes with windows in gaming. In fact, I would argue that it will enhance the your ability to fully grasp the operating system and how the PC really works.

 

8: Learning opportunities

Open source emboldens education. It practically screams, "Open me up and learn!" What better way to help youngsters learn than by giving them the ability to do just that? With really curious people, the desire to learn is extraordinary — so why lock them down with closed source software? When a people is exposed to open source software and an open source operating system, the educational opportunities are limitless.

 

9: A lesson in community

Teaching you the value of open source software helps them understand community. Although you aren't likely to open up the source code of the applications they're using, in today's constantly evolving, community-driven world, they need every advantage they can get as they grow up. Having a sound understanding of open source will help them to understand, at an early stage, what it means to really work with and for a team. Using Linux indirectly teaches you the benefit of volunteering — something many of us need to learn more about. 



10: Content filtering

Linux has numerous ways to handle content filtering for you. From the manual editing of the /etc/hosts file, you can filter content in Linux far more granularly than you can in Windows — and just as easily. Add to this the ability to lock down what you can and can't do (without having to add third-party software), and Linux quickly becomes a safe computing environment for you.

 

Your take

Would you trust your security with Linux? Do you think Linux could help — or hinder — your learning on a PC? Which operating system do you think is the best choice for you? Linux? Windows? OS X? Join the discussion and share your thoughts.
   Posted on  Thursday, February 04, 2016  / 

10 good reasons why you should install Gnu/linux, In the end, you can decide for yourself whether they're reason enough to migrate from other operating systems.



 1: Viruses/malware

This reason is always at the top of my list. Sometimes we don't focus on the things about the virus/malware while installing unknown software or inserting flash drive in USB, you can't know where they're getting those applications or attachments from. You can make sure those machines have antivirus and anti-spyware, but why even take the chance? When you are using the Gnu/Linux operating system, this concern becomes moot.

 

2: Security

This can be summed up easily. If you don't give any one the root password, they can't run with root privileges. Of course, you hit a little snag when using a distribution like Ubuntu. For any sudo-based operating system, you will need to edit the /etc/sudoers file to give user privileges they need.

 

3: Cost effectiveness

Let's say you have a younger user who is getting a hand-me-down machine that needs an OS reinstall. If you don't have that copy of Windows around, you're stuck purchasing a new copy. This can also be applied to any number of applications you might have to pay for. Avoid these costs altogether by handing that child the same machine running Gnu/Linux. You won't have pay for the OS license or any application that child might need or want. On top of that, they'll have the Add/Remove Software tool ,where they can hunt around and find just about anything they would need... all on their own! You can also run a modern distribution on much less hardware than you will need for Vista or Windows 7.

 

4: Age-specific tools

Did you know there are distributions/software groups designed specifically for young adults and children? There is Sugar, geared for K-6, Edubuntu, for ages 3-18, LinuxKidX, for ages 2-15, Foresight Kids, for ages 3-12, and many others. These age-specific tools are well suited for the group they target with graphics and language tuned for the age range. And some of the distributions geared specifically for younger kids lock the operating system down tightly so that only certain tasks can be run.

 

5: Netbooks / Low-end configuration devices

The Gnu/Linux operating system can run on low configuration devices and netbooks. You can install either a full-blown OS or a netbook-specific OS, along with whatever software you need on the netbook, making it an excellent choice for you. Gnu/Linux runs with no lag on low configuration or old Pc's. Puppy Linux can run on 333MHz CPU and 64MB Disk Spac. However having 256MB RAM and a 512MB swap file is more realistic.

 

6: Agile learners

If you put a Linux-based machine in front of a young user, you won't hear complaints like, "Why can't it run Quicken!" or "I need my custom payroll app to run on this!" Most of the people will master the Linux operating system quickly (and adroitly), with a minimal learning curve. Young minds adapt so well, you won't have any trouble adjusting to any differences. You could probably sit with a Gentoo box running CDE or AfterStep and in less time it took you to know what Linux means.

 

7: Staying in step

I know this one will bring out the ire in many readers. I'm not saying any operating system is used more than any other. But Linux is used worldwide. Many countries as a whole have adopted Linux. The future of Linux is very bright — and it seems to be getting brighter. So why not give you a head start on what could possibly be the future of the PC? This also applies for those fledgling IT pros out there. If Windows is so user friendly, you spending most of their time on Linux should have no problem grasping Windows. Gnu/Linux passes 1600 Games which competes with windows in gaming. In fact, I would argue that it will enhance the your ability to fully grasp the operating system and how the PC really works.

 

8: Learning opportunities

Open source emboldens education. It practically screams, "Open me up and learn!" What better way to help youngsters learn than by giving them the ability to do just that? With really curious people, the desire to learn is extraordinary — so why lock them down with closed source software? When a people is exposed to open source software and an open source operating system, the educational opportunities are limitless.

 

9: A lesson in community

Teaching you the value of open source software helps them understand community. Although you aren't likely to open up the source code of the applications they're using, in today's constantly evolving, community-driven world, they need every advantage they can get as they grow up. Having a sound understanding of open source will help them to understand, at an early stage, what it means to really work with and for a team. Using Linux indirectly teaches you the benefit of volunteering — something many of us need to learn more about. 



10: Content filtering

Linux has numerous ways to handle content filtering for you. From the manual editing of the /etc/hosts file, you can filter content in Linux far more granularly than you can in Windows — and just as easily. Add to this the ability to lock down what you can and can't do (without having to add third-party software), and Linux quickly becomes a safe computing environment for you.

 

Your take

Would you trust your security with Linux? Do you think Linux could help — or hinder — your learning on a PC? Which operating system do you think is the best choice for you? Linux? Windows? OS X? Join the discussion and share your thoughts.

Thursday, 19 November 2015

Now Microsoft's Visual Studio Source Code is Open-Source for GNU/Linux, OS X, and Windows

Visual Studio Code is now licensed under the MIT license


During the Connect(); 2015 developer event that took place on November 18, 2015, in New York City, USA, Microsoft had the great pleasure of announcing that its Visual Studio Code integrated development environment software is now open source.

Immediately after the huge announcement, Microsoft published the Visual Code Studio sources on the GitHub project hosting website, urging the community to contribute to the development of the software in any way they can. "You spoke and we listened. With this release, VS Code development is now open source on GitHub," said Microsoft.
The cross-platform web and cloud development code editor (IDE) is now distributed for free as an open-source application on GitHub, licensed under the MIT license for all supported operating systems, including GNU/Linux, Mac OS X, and, of course, Microsoft Windows.
The latest available release at the moment of writing this article is version 0.10.1, but Microsoft announced that it put the software in Beta and declared it "the most significant release since the launch," and just by looking at the release notes, we can notice that Visual Studio Code Beta is a massive update with numerous new features.
Among the most important ones, we can mention support for TextMate snippets, debug console improvements, easy variable selection, debug environment configuration, node.js debugging, improved debug hover behavior, improved syntax highlighting, environment variable substitution, and new difference view settings.
   Posted on  Thursday, November 19, 2015  / 

Visual Studio Code is now licensed under the MIT license


During the Connect(); 2015 developer event that took place on November 18, 2015, in New York City, USA, Microsoft had the great pleasure of announcing that its Visual Studio Code integrated development environment software is now open source.

Immediately after the huge announcement, Microsoft published the Visual Code Studio sources on the GitHub project hosting website, urging the community to contribute to the development of the software in any way they can. "You spoke and we listened. With this release, VS Code development is now open source on GitHub," said Microsoft.
The cross-platform web and cloud development code editor (IDE) is now distributed for free as an open-source application on GitHub, licensed under the MIT license for all supported operating systems, including GNU/Linux, Mac OS X, and, of course, Microsoft Windows.
The latest available release at the moment of writing this article is version 0.10.1, but Microsoft announced that it put the software in Beta and declared it "the most significant release since the launch," and just by looking at the release notes, we can notice that Visual Studio Code Beta is a massive update with numerous new features.
Among the most important ones, we can mention support for TextMate snippets, debug console improvements, easy variable selection, debug environment configuration, node.js debugging, improved debug hover behavior, improved syntax highlighting, environment variable substitution, and new difference view settings.

Thursday, 12 November 2015

Steam for Linux Passes 1600 Games Exactly Three Years After Launch

Steam has changed the Linux ecosystem forever


Steam for Linux has been around for three years, and it completely changed the landscape, bringing a lot of games to Gnu/Linux and signaling to the industry that this OS is ready to become a gaming platform for who want to Switch to Gnu/Linux.
The launch of Steam for Linux back in November 2012 has done much more than just convince a lot of developers to port their games to the open source OS. It sent a clear signal to the entire community, not just gaming, that it’s time to look at Gnu/Linux more carefully and start building products for it and expecting more Gnu/Linux laptops for next upcoming years.
Let’s just take the example of Nvidia and AMD. Both companies had drivers for Linux users, but they were in a really poor state, and they didn’t seem to care. The advent of gaming changed all that and we now have much more frequent driver releases, and it’s clear that the developers from these companies have a lot more work to do. Also, Nvidia is working to port the available middleware as well.

Where is Steam for Gnu/Linux going?

Right now, there are over 1600 games (1618) on the Steam for Linux, and the number of releases increases all the time. More developers choose to port the titles for Linux users, developers change their engines to export for Linux, and feature parity between Windows and Linux graphics will be a fact once the new Vulkan (OpenGL spiritual successor) is released.
We can’t really say that Steam for Linux is a success, as it’s still too early to tell. What we do know is that Valve is also heavily investing a new Linux operating system named SteamOS, based on Debian, and it has big plans for the future.
Valve is playing the long game and they don’t seem to expect fast results. As it stands right now, the Linux users account for about 1%, but they do hope that’s going to change in the future, albeit not the immediate one.
   Posted on  Thursday, November 12, 2015  / 

Steam has changed the Linux ecosystem forever


Steam for Linux has been around for three years, and it completely changed the landscape, bringing a lot of games to Gnu/Linux and signaling to the industry that this OS is ready to become a gaming platform for who want to Switch to Gnu/Linux.
The launch of Steam for Linux back in November 2012 has done much more than just convince a lot of developers to port their games to the open source OS. It sent a clear signal to the entire community, not just gaming, that it’s time to look at Gnu/Linux more carefully and start building products for it and expecting more Gnu/Linux laptops for next upcoming years.
Let’s just take the example of Nvidia and AMD. Both companies had drivers for Linux users, but they were in a really poor state, and they didn’t seem to care. The advent of gaming changed all that and we now have much more frequent driver releases, and it’s clear that the developers from these companies have a lot more work to do. Also, Nvidia is working to port the available middleware as well.

Where is Steam for Gnu/Linux going?

Right now, there are over 1600 games (1618) on the Steam for Linux, and the number of releases increases all the time. More developers choose to port the titles for Linux users, developers change their engines to export for Linux, and feature parity between Windows and Linux graphics will be a fact once the new Vulkan (OpenGL spiritual successor) is released.
We can’t really say that Steam for Linux is a success, as it’s still too early to tell. What we do know is that Valve is also heavily investing a new Linux operating system named SteamOS, based on Debian, and it has big plans for the future.
Valve is playing the long game and they don’t seem to expect fast results. As it stands right now, the Linux users account for about 1%, but they do hope that’s going to change in the future, albeit not the immediate one.

Saturday, 7 November 2015

Microsoft Names End Date For Windows, 7 Is Going Away, Keep Calm and Switch to Gnu/Linux


A new message inviting Windows users to adopt Gnu/Linux is making the rounds online

There are a lot of malicious Linux messages on the Internet against Microsoft, Apple, and others, but some of them are actually very well done, friendly, and could be easily adopted as a motto.

These types of messages are bound to increase in frequency as we approach the end of life for Windows XP, on April 8. Even if the message is not specifically targeted at Windows, everyone seems to assume that this is the case.

Fans of an older Windows operating system have reason to feel the pang of nostalgia today: Microsoft has quietly announced the end date for Windows 7. This end date will affect the sale of computers with the operating system pre-installed, but the announcement also lists two further dates when support will be cancelled.

According to their Windows Lifecycle Fact Sheet page, the sale of new Windows 7 Professional machines from authorized retailers will end on October 31, 2016; the sale of Windows 7 Home machines ended last year in October. The end of the support for the OS was January of this year for the mainstream support, with the end of extended support coming around in January of 2020.

Interestingly, Windows 8 has a weird end of life schedule, too. Windows 8 pre-installed machines will leave the market before the end of the run for Windows 7 Pro, as retail sales of the devices will cease on June 30, 2016. Windows 8.1 machines get to hang on a little longer, ending on the same date as the sales of Windows 7 Pro machines, October 31. The end of mainstream support for 8.1 will be in January of 2018, with extended support ending in January of 2023.

Here’s an interesting mention from the Fact Sheet that comes with no fanfare or explanation: Windows 10 mainstream support is slated to end in five years; extended support will end in ten years. While this probably only indicates that Microsoft is preparing for service pack updates–as the case with the Windows 8 and Windows 8.1 dates, meaning we can expect a different time frame for any versions like Windows 10.1 or later–it does call into question the “software as a service” shift that was to take place with the new OS. The early reports from industry experts had a “the last software you’ll ever need” feel to their assessment due to the changing SaaS model of charging for new cloud-based features.

The Gnu/Linux community is expecting that a number of Windows users will choose to stop using Windows products and switch to a Gnu/Linux distribution. That is very unlikely, but it hasn't stopped people from constantly inviting users to try Linux and from modifying well-known memes in order to get the message across. Xiaomi's long-rumored Gnu/Linux laptop will be entering production in the first part of 2016, which will be serious competition with windows.

If you have seen any more interesting and funny Linux messages, don't be shy and leave a comment in the section below.
   Posted on  Saturday, November 07, 2015  / 


A new message inviting Windows users to adopt Gnu/Linux is making the rounds online

There are a lot of malicious Linux messages on the Internet against Microsoft, Apple, and others, but some of them are actually very well done, friendly, and could be easily adopted as a motto.

These types of messages are bound to increase in frequency as we approach the end of life for Windows XP, on April 8. Even if the message is not specifically targeted at Windows, everyone seems to assume that this is the case.

Fans of an older Windows operating system have reason to feel the pang of nostalgia today: Microsoft has quietly announced the end date for Windows 7. This end date will affect the sale of computers with the operating system pre-installed, but the announcement also lists two further dates when support will be cancelled.

According to their Windows Lifecycle Fact Sheet page, the sale of new Windows 7 Professional machines from authorized retailers will end on October 31, 2016; the sale of Windows 7 Home machines ended last year in October. The end of the support for the OS was January of this year for the mainstream support, with the end of extended support coming around in January of 2020.

Interestingly, Windows 8 has a weird end of life schedule, too. Windows 8 pre-installed machines will leave the market before the end of the run for Windows 7 Pro, as retail sales of the devices will cease on June 30, 2016. Windows 8.1 machines get to hang on a little longer, ending on the same date as the sales of Windows 7 Pro machines, October 31. The end of mainstream support for 8.1 will be in January of 2018, with extended support ending in January of 2023.

Here’s an interesting mention from the Fact Sheet that comes with no fanfare or explanation: Windows 10 mainstream support is slated to end in five years; extended support will end in ten years. While this probably only indicates that Microsoft is preparing for service pack updates–as the case with the Windows 8 and Windows 8.1 dates, meaning we can expect a different time frame for any versions like Windows 10.1 or later–it does call into question the “software as a service” shift that was to take place with the new OS. The early reports from industry experts had a “the last software you’ll ever need” feel to their assessment due to the changing SaaS model of charging for new cloud-based features.

The Gnu/Linux community is expecting that a number of Windows users will choose to stop using Windows products and switch to a Gnu/Linux distribution. That is very unlikely, but it hasn't stopped people from constantly inviting users to try Linux and from modifying well-known memes in order to get the message across. Xiaomi's long-rumored Gnu/Linux laptop will be entering production in the first part of 2016, which will be serious competition with windows.

If you have seen any more interesting and funny Linux messages, don't be shy and leave a comment in the section below.

Tuesday, 27 October 2015

Xiaomi Linux Laptop To Enter Production Early Next Year

Xiaomi’s long-rumoured Linux laptop will enter production in the first part of 2016, a new report claims.
Industry watcher Digitimes’ sources also reveal that China’s Xiaomi plans to launch two notebooks: one sporting a 12.5-inch display and another with a 13.3-inch display.
A difference in screen size is not the only distinction as each device will be made by a separate ODM:
The model with a 12.5-inch screen will be manufactured by Inventec (who make laptops for Acer, Toshiba and HP), with an initial order of 250,000 units.
The slightly larger device is to be made by Compal Electronics (known for manufacturing Apple devices, and various PlayStation, Xbox and Nintendo games consoles), with Xiaomi placing an order for 300,000 units.
Industry analysts say Xiaomi is now the world’s third biggest smartphone vendor – but Xiaomi is much more than a smartphone maker.
It also makes the world’s second most popular wearable device, the Mi Band, and offers Smart TVs, routers, IoT home products and even an air purifier – ! – as part of its ‘lifestyle strategy’.
It’s very much a case of when Xiaomi makes a laptop, not if.
Manufacturing sources speaking to Digitimes earlier in the year said the company was developing a 15.6-inch notebook with its ODM partners. No firm production plans were set at the time.
Now those sources claim there are two laptops, neither of which is 15-inch in size, but production of which is to commence in the first half of 2016.
‘Xiaomi is considering selling its new notebooks as part of a smartphone bundle’
The manufacture and design of electronics is always subject to change and revision. What a source hears one month can be contradicted a few weeks later as component costs fluctuate, manufacturing availability changes, and market trends prompt a rethink.
With word of the Xiaomi laptop entering production, it’s clear a direction has now been settled on.
Xiaomi’s notebooks will, according to the same sources, be priced cheaply but offer high performance, just like the company’s smartphones.
In fact, Xiaomi is said to be considering selling its new notebooks as a bundle with a new smartphone – a way to not only reinforce its overall lifestyle strategy, but ensure its new notebooks get off to a stellar start.
And with a new, untested Linux-based OS onboard, it may well need the push.
If anyone stands a chance of taking Linux mainstream in China it’s Xiaomi.
   Posted on  Tuesday, October 27, 2015  / 

Xiaomi’s long-rumoured Linux laptop will enter production in the first part of 2016, a new report claims.
Industry watcher Digitimes’ sources also reveal that China’s Xiaomi plans to launch two notebooks: one sporting a 12.5-inch display and another with a 13.3-inch display.
A difference in screen size is not the only distinction as each device will be made by a separate ODM:
The model with a 12.5-inch screen will be manufactured by Inventec (who make laptops for Acer, Toshiba and HP), with an initial order of 250,000 units.
The slightly larger device is to be made by Compal Electronics (known for manufacturing Apple devices, and various PlayStation, Xbox and Nintendo games consoles), with Xiaomi placing an order for 300,000 units.
Industry analysts say Xiaomi is now the world’s third biggest smartphone vendor – but Xiaomi is much more than a smartphone maker.
It also makes the world’s second most popular wearable device, the Mi Band, and offers Smart TVs, routers, IoT home products and even an air purifier – ! – as part of its ‘lifestyle strategy’.
It’s very much a case of when Xiaomi makes a laptop, not if.
Manufacturing sources speaking to Digitimes earlier in the year said the company was developing a 15.6-inch notebook with its ODM partners. No firm production plans were set at the time.
Now those sources claim there are two laptops, neither of which is 15-inch in size, but production of which is to commence in the first half of 2016.
‘Xiaomi is considering selling its new notebooks as part of a smartphone bundle’
The manufacture and design of electronics is always subject to change and revision. What a source hears one month can be contradicted a few weeks later as component costs fluctuate, manufacturing availability changes, and market trends prompt a rethink.
With word of the Xiaomi laptop entering production, it’s clear a direction has now been settled on.
Xiaomi’s notebooks will, according to the same sources, be priced cheaply but offer high performance, just like the company’s smartphones.
In fact, Xiaomi is said to be considering selling its new notebooks as a bundle with a new smartphone – a way to not only reinforce its overall lifestyle strategy, but ensure its new notebooks get off to a stellar start.
And with a new, untested Linux-based OS onboard, it may well need the push.
If anyone stands a chance of taking Linux mainstream in China it’s Xiaomi.

Saturday, 24 October 2015

10 Linux GUI tools for sysadmins




Has administering Linux via the command line confounded you? Here are 10 GUI tools that might make your life as a Linux administrator much easier.
linuxadminhero.jpg

If you're a system administrator, it's reached a point where Linux has become a must-know. This is especially true when you're working in a larger environment. Many organizations have migrated from Windows, where everything is managed with a point-and-click GUI. Fortunately, Linux has plenty of GUI tools that can help you avoid the command line (although every serious sysadmin should become familiar with the commands).

What are some good GUI tools that can simplify your Linux sysadmin tasks? Let's take a look at 10 of them.

1: MySQL Workbench

MySQL Workbench is one of my favorite tools for working with MySQL databases. You can work locally or remotely with this well designed GUI tool. But MySQL Workbench isn't just for managing previously created databases. It also helps you design, develop, and administer MySQL databases. A newer addition to the MySQL Workbench set of tools is the ability to easily migrate Microsoft SQL Server, Microsoft Access, Sybase ASE, PostgreSQL, and other RDBMS tables, objects, and data to MySQL. That alone makes MySQL Workbench worth using.

2: phpMyAdmin

phpMyAdmin is another MySQL administration tool... only web based. Although it doesn't offer the bells and whistles of MySQL Workbench, it's a much more user-friendly tool. With phpMyAdmin you can create and manage MySQL databases via a standard web browser. This means you can install phpMyAdmin on a headless Linux server and connect to it through any browser that has access to the machine.

3: Webmin

Webmin is a web-based one-stop-shop tool for administering Linux servers. With Webmin you can manage nearly every single aspect of a server—user accounts, Apache, DNS, file sharing, security, databases, and much more. And if what you need isn't included with the default installation, a massive number of third-party modules are available to take up the slack.

4: YaST

YaST stands for Yet Another Setup Tool. It enables system configuration for enterprise-grade SUSE and openSUSE and serves as both the installation and configuration tool for the platform. With YaST you can configure hardware, network, and services and tune system security, all with an easy-to-use, attractive GUI. YaST is installed by default in all SUSE and openSUSE platforms.

5: Shorewall

Shorewall is a GUI for configuring iptables. Yes, there are other GUIs for tuning the security of your system, but many of them don't go nearly as deep as Shorewall. Where an app like UFW is one of the best security tuners for the desktop, Shorewall is tops for the server. With this particular security GUI, you can configure gateways, VPNs, traffic controlling, blacklisting, and much more. If you're serious about your firewall, and you want a GUI for the job, Shorewall is what you want.

6: Apache Directory

Apache Directory is about the only solid GUI tool for managing any LDAP server (though it is designed particularly for ApacheDS). It's an Eclipse RCP application and can serve as your LDAP browser, schema editor, ApacheDS configuration editor, LDIF editor, ACI editor, and more. The app also contains the latest ApacheDS, which means you can use it to create a DS server in no time.

7: CUPS

CUPS is the Linux printer service that also happens to have a web-based GUI tool for the management of printers, printer classes, and print queues. It is also possible to enable Kerberos authentication and remote administration. One really nice thing about this GUI is its built-in help system. You can learn nearly everything you need to manage your print server.

8: cPanel

cPanel is one of the finest web-based administration tools you'll use. It lets you configure sites, customers' sites and services, and quite a bit more. With this tool you can configure/manage mail, security, domains, apps, apps, files, databases, logs—the list goes on and on. The only drawback to using cPanel is that it's not free. Check out the pricing matrix to see if there's a plan to fit your needs.

9: Zenmap

Zenmap is the official front end for the Nmap network scanner. With this tool, both beginners and advanced users can quickly and easily scan their network to troubleshoot issues. After scanning, you can even save the results to comb through them later. Although you won't use this tool to directly administer your system, it will become invaluable in the quest for discovering network-related issues.

10: Cockpit

Cockpit was created by Red Hat to make server administration easier. With this web-based GUI you can tackle tasks like storage administration, journal inspection, starting/stopping services, and multiple server monitoring. Cockpit will run on Fedora Server, Arch Linux, CentOS Atomic, Fedora Atomic, and Red Hat Enterprise Linux.
   Posted on  Saturday, October 24, 2015  / 




Has administering Linux via the command line confounded you? Here are 10 GUI tools that might make your life as a Linux administrator much easier.
linuxadminhero.jpg

If you're a system administrator, it's reached a point where Linux has become a must-know. This is especially true when you're working in a larger environment. Many organizations have migrated from Windows, where everything is managed with a point-and-click GUI. Fortunately, Linux has plenty of GUI tools that can help you avoid the command line (although every serious sysadmin should become familiar with the commands).

What are some good GUI tools that can simplify your Linux sysadmin tasks? Let's take a look at 10 of them.

1: MySQL Workbench

MySQL Workbench is one of my favorite tools for working with MySQL databases. You can work locally or remotely with this well designed GUI tool. But MySQL Workbench isn't just for managing previously created databases. It also helps you design, develop, and administer MySQL databases. A newer addition to the MySQL Workbench set of tools is the ability to easily migrate Microsoft SQL Server, Microsoft Access, Sybase ASE, PostgreSQL, and other RDBMS tables, objects, and data to MySQL. That alone makes MySQL Workbench worth using.

2: phpMyAdmin

phpMyAdmin is another MySQL administration tool... only web based. Although it doesn't offer the bells and whistles of MySQL Workbench, it's a much more user-friendly tool. With phpMyAdmin you can create and manage MySQL databases via a standard web browser. This means you can install phpMyAdmin on a headless Linux server and connect to it through any browser that has access to the machine.

3: Webmin

Webmin is a web-based one-stop-shop tool for administering Linux servers. With Webmin you can manage nearly every single aspect of a server—user accounts, Apache, DNS, file sharing, security, databases, and much more. And if what you need isn't included with the default installation, a massive number of third-party modules are available to take up the slack.

4: YaST

YaST stands for Yet Another Setup Tool. It enables system configuration for enterprise-grade SUSE and openSUSE and serves as both the installation and configuration tool for the platform. With YaST you can configure hardware, network, and services and tune system security, all with an easy-to-use, attractive GUI. YaST is installed by default in all SUSE and openSUSE platforms.

5: Shorewall

Shorewall is a GUI for configuring iptables. Yes, there are other GUIs for tuning the security of your system, but many of them don't go nearly as deep as Shorewall. Where an app like UFW is one of the best security tuners for the desktop, Shorewall is tops for the server. With this particular security GUI, you can configure gateways, VPNs, traffic controlling, blacklisting, and much more. If you're serious about your firewall, and you want a GUI for the job, Shorewall is what you want.

6: Apache Directory

Apache Directory is about the only solid GUI tool for managing any LDAP server (though it is designed particularly for ApacheDS). It's an Eclipse RCP application and can serve as your LDAP browser, schema editor, ApacheDS configuration editor, LDIF editor, ACI editor, and more. The app also contains the latest ApacheDS, which means you can use it to create a DS server in no time.

7: CUPS

CUPS is the Linux printer service that also happens to have a web-based GUI tool for the management of printers, printer classes, and print queues. It is also possible to enable Kerberos authentication and remote administration. One really nice thing about this GUI is its built-in help system. You can learn nearly everything you need to manage your print server.

8: cPanel

cPanel is one of the finest web-based administration tools you'll use. It lets you configure sites, customers' sites and services, and quite a bit more. With this tool you can configure/manage mail, security, domains, apps, apps, files, databases, logs—the list goes on and on. The only drawback to using cPanel is that it's not free. Check out the pricing matrix to see if there's a plan to fit your needs.

9: Zenmap

Zenmap is the official front end for the Nmap network scanner. With this tool, both beginners and advanced users can quickly and easily scan their network to troubleshoot issues. After scanning, you can even save the results to comb through them later. Although you won't use this tool to directly administer your system, it will become invaluable in the quest for discovering network-related issues.

10: Cockpit

Cockpit was created by Red Hat to make server administration easier. With this web-based GUI you can tackle tasks like storage administration, journal inspection, starting/stopping services, and multiple server monitoring. Cockpit will run on Fedora Server, Arch Linux, CentOS Atomic, Fedora Atomic, and Red Hat Enterprise Linux.

Sunday, 6 September 2015

Debian GNU/Linux 8.2 "Jessie" Officially Released, Available for Download Now

The Debian Project had the great pleasure of announcing the release and immediate availability for download of new maintenance builds for their stable, long-term supported Debian GNU/Linux 7 and Debian GNU/Linux 8 operating systems.
Debian GNU/Linux 8.2 (Jessie) is the second point release in the Debian GNU/Linux 8 series and promises to bring all sorts of security patches, software updates, as well as to fix numerous issues reported by users since the release of Debian GNU/Linux 8.1 in order to keep the long-term Linux kernel-based operating system reliable and stable at all times.
In numbers, Debian GNU/Linux 8.2 "Jessie" has 61 security updates for some essential packages, including the kernel, 68 updated packages to fix all sort of miscellaneous bugs, and 6 removed packages. The Debian Installer received an important update as well, now supporting Seagate DockStar devices. More details about what exactly has been changed in this release can be found in the official release notes.
"The Debian project is pleased to announce the second update of its stable distribution Debian 8 (codename "jessie"). This update mainly adds corrections for security problems to the stable release, along with a few adjustments for serious problems. Security advisories were published separately and are referenced where applicable," reads the announcement.

All Debian GNU/Linux 8 and 8.1 users must upgrade

As expected, the Debian Project urges all users of the Debian GNU/Linux 8 and Debian GNU/Linux 8.1 operating systems to upgrade their installations to the new 8.2 release of Jessie as soon as possible. All they have to do is to make sure their systems are up to date by running the "sudo apt-get update && sudo apt-get dist-upgrade" commands in a Terminal window or use a graphical package manager like Synaptic Package Manager.
Those who want to deploy Debian GNU/Linux 8.2 (Jessie) on new computers or make a fresh install of Debian can download the Installation CDs of Debian right now from Softpedia, supported on 64-bit and 32-bit architectures. Additionally, you can also download the Debian GNU/Linux 8.2 Live CDs with the KDE, GNOME, Cinnamon, MATE, LXDE, and Xfce desktop environments.
   Posted on  Sunday, September 06, 2015  / 

The Debian Project had the great pleasure of announcing the release and immediate availability for download of new maintenance builds for their stable, long-term supported Debian GNU/Linux 7 and Debian GNU/Linux 8 operating systems.
Debian GNU/Linux 8.2 (Jessie) is the second point release in the Debian GNU/Linux 8 series and promises to bring all sorts of security patches, software updates, as well as to fix numerous issues reported by users since the release of Debian GNU/Linux 8.1 in order to keep the long-term Linux kernel-based operating system reliable and stable at all times.
In numbers, Debian GNU/Linux 8.2 "Jessie" has 61 security updates for some essential packages, including the kernel, 68 updated packages to fix all sort of miscellaneous bugs, and 6 removed packages. The Debian Installer received an important update as well, now supporting Seagate DockStar devices. More details about what exactly has been changed in this release can be found in the official release notes.
"The Debian project is pleased to announce the second update of its stable distribution Debian 8 (codename "jessie"). This update mainly adds corrections for security problems to the stable release, along with a few adjustments for serious problems. Security advisories were published separately and are referenced where applicable," reads the announcement.

All Debian GNU/Linux 8 and 8.1 users must upgrade

As expected, the Debian Project urges all users of the Debian GNU/Linux 8 and Debian GNU/Linux 8.1 operating systems to upgrade their installations to the new 8.2 release of Jessie as soon as possible. All they have to do is to make sure their systems are up to date by running the "sudo apt-get update && sudo apt-get dist-upgrade" commands in a Terminal window or use a graphical package manager like Synaptic Package Manager.
Those who want to deploy Debian GNU/Linux 8.2 (Jessie) on new computers or make a fresh install of Debian can download the Installation CDs of Debian right now from Softpedia, supported on 64-bit and 32-bit architectures. Additionally, you can also download the Debian GNU/Linux 8.2 Live CDs with the KDE, GNOME, Cinnamon, MATE, LXDE, and Xfce desktop environments.

Posted in: , Read Complete Article»

Sunday, 23 August 2015

5 Lies Gnu/Linux-Haters Like To Tell


Gnu/Linux is the Voldemort of computers. You speak its name and everyone cowers in the corner, fearful of the pain and suffering it might bring. The thing is, Gnu/Linux may have been a scary operating system before, but all of that has changed in recent years. These myths, which are more accurately called lies, are now dead.
Lie #1: Gnu/Linux Is Too Difficult
linux-lies-debunked-difficult-learning-curve
Out of all arguments against using Gnu/Linux, this one is the most common. In past articles, we’ve even inadvertently implied that “Gnu/Linux is too difficult to learn” without even realizing it. The veracity of the statement, however, depends entirely on the definition of “too difficult” because it could be true in some ways and false in others.
Is Gnu/Linux difficult in an absolute sense? No, not really. In fact, if you really look at it from an objective standpoint, it’s arguably the most logical operating system out there. If you want to do something, you just need to learn the right commands and parameters.
When coming from a blank slate, the hardest part of Gnu/Linux is learning the sheer depth of commands. Thankfully, the man command (i.e. “manual”) tells you everything you need to know about any command. That being said, Gnu/Linux newbies should first get started with these 50 essential Gnu/Linux commands
But the reality is that most Gnu/Linux newbies aren’t coming from a blank slate; they’re coming from Windows or Mac. If a user comes to Gnu/Linux expecting it to behave like another operating system, yes, it will be difficult and frustrating. However, if Gnu/Linux is treated as it should be – a unique operating system with its own design and behaviors – then it won’t be so tough to grasp.

Lie #2: Gnu/Linux Is Old And Ugly

linux-lies-debunked-ugly-old
Most first impressions of Gnu/Linux aren’t too great, at least when it comes to aesthetics. Those who have never touched Gnu/Linux probably imagine it to be nothing more than neon green text on a black background. Those who tried Gnu/Linux many years ago probably remember the clunky graphics of older versions of Gnome and KDE.
Gnu/Linux may have been ugly back in the day, but things are different now.
One thing to understand is that the Gnu/Linux frontend (desktop, windows, animations) are decoupled from the Gnu/Linux backend (the actual cogs of the operating system). There are multiple frontends, called desktop environments, and you can switch between them if you want. This may be a foreign concept for those who are used to Windows and Mac.
Gnu/Linux has best desktop environments and each one offers a unique set of benefits. Some optimize performance while others aim for maximum eye candy. Check out Unity, the default desktop environment for Ubuntu, for proof that not all Gnu/Linux environments have to be sterile and outdated.

Lie #3: You Must Use the Command Line

linux-lies-debunked-command-line
Let’s go back to the idea of green text on a black background. The Gnu/Linux stereotype is one of a basement hacker with thick glasses who types frantically on a command line, which is properly known as a terminal. As a result, most people are under the impression that Gnu/Linux is 99% keyboard.
Not true at all.
The desktop environments mentioned in Lie #2 are just like the graphic environments of Windows and Mac. You can navigate files and folders with your mouse if you want. In fact, it’s entirely possible to use Gnu/Linux without ever touching the terminal. Perhaps that was true at some point in history, but it hasn’t been like that for a long time.
However, there is a slight caveat. If you ever run into issues, they’ll be easier to solve if you have some knowledge of the command line. Indeed, if you want to unlock the full potential of Gnu/Linux, you have to learn Gnu/Linux Commands. For day-to-day use, you won’t need it; for anything deeper like want to become a sysadmin, you will.

Lie #4: You Must Build From Source

linux-lies-debunked-build-from-source
If you’ve ever downloaded a cross-platform program and looked under the Gnu/Linux section, you’ve probably noticed that Gnu/Linux downloads often come in source code while Windows and Mac typically come as binaries. One might conclude that Gnu/Linux requires the user to build all programs from source, but that’s not necessarily true.
Most distributions come with something called a package manager. In Gnu/Linux, a package is a collection of files and instructions which are interpreted by the package manager to show where and how those files should be unpacked. Long story short, packages can be used in a way similar to one-click installers.
Package managers have an additional benefit: they can tap into various online repositories full of different packages, which means that a manager can often be a one-stop-shop that provides quick installation of most available programs for your particular distribution of Gnu/Linux.
Lesser known programs may not be available in these repositories, however, and in those rare cases you may need to build said programs from source. As long as you stick to well-known programs, this may never be an issue for you.

Lie #5: Gnu/Linux Can’t Play Video Games

linux-lies-debunked-video-games
One reason why Windows continues to capture a huge share of the market is its de facto standard as “the operating system for gaming.” If you want to play the latest and greatest games, chances are you’ll need a Windows computer or you’ll be out of luck. But anyone who says that Gnu/Linux can’t play video games at all is a liar.
Many people don’t realize that there are several high profile games that can be played natively on Gnu/Linux. Some well-known titles include Amnesia, Civilization V,Dota 2, Half-Life series, World of Goo, but there are more. Combine that with the new Gnu/Linux releases by GOG and the recently released StemOS, which is a variant of Gnu/Linux that aims to support every game on the Steam platform, and you’ll see that gaming on Gnu/Linux has an interesting future.
There’s another option, too, and that’s Wine, which is “a free implementation of Windows” on Gnu/Linux. You can think of it as an emulator that’ll let you run Windows games on Gnu/Linux. Not every game will work this way and the games that do run might experience a performance hit. However, it’s a very real option that many use on a regular basis.
All Debunked: Got Any More Gnu/Linux Lies?
There you have it: five of the most common Gnu/Linux lies, debunked. What other Gnu/Linux lies or myths have you heard recently? Share them with us in the comments below and help debunk them! It’s about time that these falsehoods come to an end.

Image Credits: Frustrating Computer Via Shutterstock, Linux Terminal Via Shutterstock, Source Code Via Shutterstock, Gamer Behind Computer Via Shutterstock. Source: Makeuseof.com
   Posted on  Sunday, August 23, 2015  / 


Gnu/Linux is the Voldemort of computers. You speak its name and everyone cowers in the corner, fearful of the pain and suffering it might bring. The thing is, Gnu/Linux may have been a scary operating system before, but all of that has changed in recent years. These myths, which are more accurately called lies, are now dead.
Lie #1: Gnu/Linux Is Too Difficult
linux-lies-debunked-difficult-learning-curve
Out of all arguments against using Gnu/Linux, this one is the most common. In past articles, we’ve even inadvertently implied that “Gnu/Linux is too difficult to learn” without even realizing it. The veracity of the statement, however, depends entirely on the definition of “too difficult” because it could be true in some ways and false in others.
Is Gnu/Linux difficult in an absolute sense? No, not really. In fact, if you really look at it from an objective standpoint, it’s arguably the most logical operating system out there. If you want to do something, you just need to learn the right commands and parameters.
When coming from a blank slate, the hardest part of Gnu/Linux is learning the sheer depth of commands. Thankfully, the man command (i.e. “manual”) tells you everything you need to know about any command. That being said, Gnu/Linux newbies should first get started with these 50 essential Gnu/Linux commands
But the reality is that most Gnu/Linux newbies aren’t coming from a blank slate; they’re coming from Windows or Mac. If a user comes to Gnu/Linux expecting it to behave like another operating system, yes, it will be difficult and frustrating. However, if Gnu/Linux is treated as it should be – a unique operating system with its own design and behaviors – then it won’t be so tough to grasp.

Lie #2: Gnu/Linux Is Old And Ugly

linux-lies-debunked-ugly-old
Most first impressions of Gnu/Linux aren’t too great, at least when it comes to aesthetics. Those who have never touched Gnu/Linux probably imagine it to be nothing more than neon green text on a black background. Those who tried Gnu/Linux many years ago probably remember the clunky graphics of older versions of Gnome and KDE.
Gnu/Linux may have been ugly back in the day, but things are different now.
One thing to understand is that the Gnu/Linux frontend (desktop, windows, animations) are decoupled from the Gnu/Linux backend (the actual cogs of the operating system). There are multiple frontends, called desktop environments, and you can switch between them if you want. This may be a foreign concept for those who are used to Windows and Mac.
Gnu/Linux has best desktop environments and each one offers a unique set of benefits. Some optimize performance while others aim for maximum eye candy. Check out Unity, the default desktop environment for Ubuntu, for proof that not all Gnu/Linux environments have to be sterile and outdated.

Lie #3: You Must Use the Command Line

linux-lies-debunked-command-line
Let’s go back to the idea of green text on a black background. The Gnu/Linux stereotype is one of a basement hacker with thick glasses who types frantically on a command line, which is properly known as a terminal. As a result, most people are under the impression that Gnu/Linux is 99% keyboard.
Not true at all.
The desktop environments mentioned in Lie #2 are just like the graphic environments of Windows and Mac. You can navigate files and folders with your mouse if you want. In fact, it’s entirely possible to use Gnu/Linux without ever touching the terminal. Perhaps that was true at some point in history, but it hasn’t been like that for a long time.
However, there is a slight caveat. If you ever run into issues, they’ll be easier to solve if you have some knowledge of the command line. Indeed, if you want to unlock the full potential of Gnu/Linux, you have to learn Gnu/Linux Commands. For day-to-day use, you won’t need it; for anything deeper like want to become a sysadmin, you will.

Lie #4: You Must Build From Source

linux-lies-debunked-build-from-source
If you’ve ever downloaded a cross-platform program and looked under the Gnu/Linux section, you’ve probably noticed that Gnu/Linux downloads often come in source code while Windows and Mac typically come as binaries. One might conclude that Gnu/Linux requires the user to build all programs from source, but that’s not necessarily true.
Most distributions come with something called a package manager. In Gnu/Linux, a package is a collection of files and instructions which are interpreted by the package manager to show where and how those files should be unpacked. Long story short, packages can be used in a way similar to one-click installers.
Package managers have an additional benefit: they can tap into various online repositories full of different packages, which means that a manager can often be a one-stop-shop that provides quick installation of most available programs for your particular distribution of Gnu/Linux.
Lesser known programs may not be available in these repositories, however, and in those rare cases you may need to build said programs from source. As long as you stick to well-known programs, this may never be an issue for you.

Lie #5: Gnu/Linux Can’t Play Video Games

linux-lies-debunked-video-games
One reason why Windows continues to capture a huge share of the market is its de facto standard as “the operating system for gaming.” If you want to play the latest and greatest games, chances are you’ll need a Windows computer or you’ll be out of luck. But anyone who says that Gnu/Linux can’t play video games at all is a liar.
Many people don’t realize that there are several high profile games that can be played natively on Gnu/Linux. Some well-known titles include Amnesia, Civilization V,Dota 2, Half-Life series, World of Goo, but there are more. Combine that with the new Gnu/Linux releases by GOG and the recently released StemOS, which is a variant of Gnu/Linux that aims to support every game on the Steam platform, and you’ll see that gaming on Gnu/Linux has an interesting future.
There’s another option, too, and that’s Wine, which is “a free implementation of Windows” on Gnu/Linux. You can think of it as an emulator that’ll let you run Windows games on Gnu/Linux. Not every game will work this way and the games that do run might experience a performance hit. However, it’s a very real option that many use on a regular basis.
All Debunked: Got Any More Gnu/Linux Lies?
There you have it: five of the most common Gnu/Linux lies, debunked. What other Gnu/Linux lies or myths have you heard recently? Share them with us in the comments below and help debunk them! It’s about time that these falsehoods come to an end.

Image Credits: Frustrating Computer Via Shutterstock, Linux Terminal Via Shutterstock, Source Code Via Shutterstock, Gamer Behind Computer Via Shutterstock. Source: Makeuseof.com

50 Most Frequently Used Gnu/Linux Commands

This article provides practical examples for 50 most frequently used commands want to become a sysadmin in Gnu/Linux.
This is not a comprehensive list by any means, but this should give you a jumpstart on some of the common Gnu/Linux commands. Bookmark this article for your future reference.

1. tar command examples
Create a new tar archive.
$ tar cvf archive_name.tar dirname/
Extract from an existing tar archive.
$ tar xvf archive_name.tar
View an existing tar archive.
$ tar tvf archive_name.tar
2. grep command examples
Search for a given string in a file (case in-sensitive search).
$ grep -i "the" demo_file
Print the matched line, along with the 3 lines after it.
$ grep -A 3 -i "example" demo_text
Search for a given string in all files recursively
$ grep -r "ramesh" *
3. find command examples
Find files using file-name ( case in-sensitve find)
# find -iname "MyCProgram.c"
Execute commands on files found by the find command
$ find -iname "MyCProgram.c" -exec md5sum {} \;
Find all empty files in home directory
# find ~ -empty
4. ssh command examples
Login to remote host
ssh -l jsmith remotehost.example.com
Debug ssh client
ssh -v -l jsmith remotehost.example.com
Display ssh client version
$ ssh -V
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
5. sed command examples
When you copy a DOS file to Unix, you could find \r\n in the end of each line. This example converts the DOS file format to Unix file format using sed command.
$sed 's/.$//' filename
Print file content in reverse order
$ sed -n '1!G;h;$p' openupdates.txt
Add line number for all non-empty-lines in a file
$ sed '/./=' openupdates.txt | sed 'N; s/\n/ /'
6. awk command examples
Remove duplicate lines using awk
$ awk '!($0 in array) { array[$0]; print }' temp
Print all lines from /etc/passwd that has the same uid and gid
$awk -F ':' '$3==$4' passwd.txt
Print only specific field from a file.
$ awk '{print $2,$5;}' employee.txt
7. vim command examples
Go to the 143rd line of file
$ vim +143 filename.txt
Go to the first match of the specified
$ vim +/search-term filename.txt
Open the file in read only mode.
$ vim -R /etc/passwd
8. diff command examples
Ignore white space while comparing.
# diff -w name_list.txt name_list_new.txt

2c2,3
< John Doe --- > John M Doe
> Jason Bourne
9. sort command examples
Sort a file in ascending order
$ sort names.txt
Sort a file in descending order
$ sort -r names.txt
Sort passwd file by 3rd field.
$ sort -t: -k 3n /etc/passwd | more

10. export command examples

To view oracle related environment variables.
$ export | grep ORACLE
declare -x ORACLE_BASE="/u01/app/oracle"
declare -x ORACLE_HOME="/u01/app/oracle/product/10.2.0"
declare -x ORACLE_SID="med"
declare -x ORACLE_TERM="xterm"
To export an environment variable:
$ export ORACLE_HOME=/u01/app/oracle/product/10.2.0

11. xargs command examples

Copy all images to external hard-drive
# ls *.jpg | xargs -n1 -i cp {} /external-hard-drive/directory
Search all jpg images in the system and archive it.
# find / -name *.jpg -type f -print | xargs tar -cvzf images.tar.gz
Download all the URLs mentioned in the url-list.txt file
# cat url-list.txt | xargs wget –c

12. ls command examples

Display filesize in human readable format (e.g. KB, MB etc.,)
$ ls -lh
-rw-r----- 1 ramesh team-dev 8.9M Jun 12 15:27 arch-linux.txt.gz
Order Files Based on Last Modified Time (In Reverse Order) Using ls -ltr
$ ls -ltr
Visual Classification of Files With Special Characters Using ls -F
$ ls -F
13. pwd command
pwd is Print working directory. What else can be said about the good old pwd who has been printing the current directory name for ages.

14. cd command examples

Use “cd -” to toggle between the last two directories
Use “shopt -s cdspell” to automatically correct mistyped directory names on cd
15. gzip command examples
To create a *.gz compressed file:
$ gzip test.txt
To uncompress a *.gz file:
$ gzip -d test.txt.gz
Display compression ratio of the compressed file using gzip -l
$ gzip -l *.gz
         compressed        uncompressed  ratio uncompressed_name
              23709               97975  75.8% asp-patch-rpms.txt

16. bzip2 command examples

To create a *.bz2 compressed file:
$ bzip2 test.txt
To uncompress a *.bz2 file:
bzip2 -d test.txt.bz2
17. unzip command examples
To extract a *.zip compressed file:
$ unzip test.zip
View the contents of *.zip file (Without unzipping it):
$ unzip -l jasper.zip
Archive:  jasper.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
    40995  11-30-98 23:50   META-INF/MANIFEST.MF
    32169  08-25-98 21:07   classes_
    15964  08-25-98 21:07   classes_names
    10542  08-25-98 21:07   classes_ncomp

18. shutdown command examples

Shutdown the system and turn the power off immediately.
# shutdown -h now
Shutdown the system after 10 minutes.
# shutdown -h +10
Reboot the system using shutdown command.
# shutdown -r now
Force the filesystem check during reboot.
# shutdown -Fr now

19. ftp command examples

Both ftp and secure ftp (sftp) has similar commands. To connect to a remote server and download multiple files, do the following.
$ ftp IP/hostname
ftp> mget *.html
To view the file names located on the remote server before downloading, mls ftp command as shown below.
ftp> mls *.html -
/ftptest/features.html
/ftptest/index.html
/ftptest/othertools.html
/ftptest/samplereport.html
/ftptest/usage.html
20. crontab command examples
View crontab entry for a specific user
# crontab -u john -l
Schedule a cron job every 10 minutes.
*/10 * * * * /home/ramesh/check-disk-space
21. service command examples
Service command is used to run the system V init scripts. i.e Instead of calling the scripts located in the /etc/init.d/ directory with their full path, you can use the service command.
Check the status of a service:
# service ssh status
Check the status of all the services.
service --status-all
Restart a service.
# service ssh restart

22. ps command examples

ps command is used to display information about the processes that are running in the system.
While there are lot of arguments that could be passed to a ps command, following are some of the common ones.
To view current running processes.
$ ps -ef | more
To view current running processes in a tree structure. H option stands for process hierarchy.
$ ps -efH | more

23. free command examples

This command is used to display the free, used, swap memory available in the system.
Typical free command output. The output is displayed in bytes.
$ free
             total       used       free     shared    buffers     cached
Mem:       3566408    1580220    1986188          0     203988     902960
-/+ buffers/cache:     473272    3093136
Swap:      4000176          0    4000176
If you want to quickly check how many GB of RAM your system has use the -g option. -b option displays in bytes, -k in kilo bytes, -m in mega bytes.
$ free -g
             total       used       free     shared    buffers     cached
Mem:             3          1          1          0          0          0
-/+ buffers/cache:          0          2
Swap:            3          0          3
If you want to see a total memory ( including the swap), use the -t switch, which will display a total line as shown below.
ramesh@ramesh-laptop:~$ free -t
             total       used       free     shared    buffers     cached
Mem:       3566408    1592148    1974260          0     204260     912556
-/+ buffers/cache:     475332    3091076
Swap:      4000176          0    4000176
Total:     7566584    1592148    5974436

24. top command examples

top command displays the top processes in the system ( by default sorted by cpu usage ). To sort top output by any column, Press O (upper-case O) , which will display all the possible columns that you can sort by as shown below.
Current Sort Field:  P  for window 1:Def
Select sort field via field letter, type any other key to return

  a: PID        = Process Id              v: nDRT       = Dirty Pages count
  d: UID        = User Id                 y: WCHAN      = Sleeping in Function
  e: USER       = User Name               z: Flags      = Task Flags
  ........
To displays only the processes that belong to a particular user use -u option. The following will show only the top processes that belongs to oracle user.
$ top -u oracle
25. df command examples
Displays the file system disk space usage. By default df -k displays output in bytes.
$ df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             29530400   3233104  24797232  12% /
/dev/sda2            120367992  50171596  64082060  44% /home
df -h displays output in human readable form. i.e size will be displayed in GB’s.
ramesh@ramesh-laptop:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              29G  3.1G   24G  12% /
/dev/sda2             115G   48G   62G  44% /home
Use -T option to display what type of file system.
ramesh@ramesh-laptop:~$ df -T
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/sda1     ext4    29530400   3233120  24797216  12% /
/dev/sda2     ext4   120367992  50171596  64082060  44% /home

26. kill command examples

Use kill command to terminate a process. First get the process id using ps -ef command, then use kill -9 to kill the running Gnu/Linux process as shown below. You can also use killall, pkill, xkill to terminate a unix process.
$ ps -ef | grep vim
ramesh    7243  7222  9 22:43 pts/2    00:00:00 vim

$ kill -9 7243
27. rm command examples
Get confirmation before removing the file.
$ rm -i filename.txt
It is very useful while giving shell metacharacters in the file name argument.
Print the filename and get confirmation before removing the file.
$ rm -i file*
Following example recursively removes all files and directories under the example directory. This also removes the example directory itself.
$ rm -r example

28. cp command examples

Copy file1 to file2 preserving the mode, ownership and timestamp.
$ cp -p file1 file2
Copy file1 to file2. if file2 exists prompt for confirmation before overwritting it.
$ cp -i file1 file2

29. mv command examples

Rename file1 to file2. if file2 exists prompt for confirmation before overwritting it.
$ mv -i file1 file2
Note: mv -f is just the opposite, which will overwrite file2 without prompting.
mv -v will print what is happening during file rename, which is useful while specifying shell metacharacters in the file name argument.
$ mv -v file1 file2

30. cat command examples

You can view multiple files at the same time. Following example prints the content of file1 followed by file2 to stdout.
$ cat file1 file2
While displaying the file, following cat -n command will prepend the line number to each line of the output.
$ cat -n /etc/logrotate.conf
    1 /var/log/btmp {
    2     missingok
    3     monthly
    4     create 0660 root utmp
    5     rotate 1
    6 }

31. mount command examples

To mount a file system, you should first create a directory and mount it as shown below.
# mkdir /u01

# mount /dev/sdb1 /u01
You can also add this to the fstab for automatic mounting. i.e Anytime system is restarted, the filesystem will be mounted.
/dev/sdb1 /u01 ext2 defaults 0 2

32. chmod command examples

chmod command is used to change the permissions for a file or directory.
Give full access to user and group (i.e read, write and execute ) on a specific file.
$ chmod ug+rwx file.txt
Revoke all access for the group (i.e read, write and execute ) on a specific file.
$ chmod g-rwx file.txt
Apply the file permissions recursively to all the files in the sub-directories.
$ chmod -R ug+rwx file.txt
33. chown command examples
chown command is used to change the owner and group of a file. \
To change owner to oracle and group to db on a file. i.e Change both owner and group at the same time.
$ chown oracle:dba dbora.sh
Use -R to change the ownership recursively.
$ chown -R oracle:dba /home/oracle

34. passwd command examples

Change your password from command line using passwd. This will prompt for the old password followed by the new password.
$ passwd
Super user can use passwd command to reset others password. This will not prompt for current password of the user.
# passwd USERNAME
Remove password for a specific user. Root user can disable password for a specific user. Once the password is disabled, the user can login without entering the password.
# passwd -d USERNAME

35. mkdir command examples

Following example creates a directory called temp under your home directory.
$ mkdir ~/temp
Create nested directories using one mkdir command. If any of these directories exist already, it will not display any error. If any of these directories doesn’t exist, it will create them.
$ mkdir -p dir1/dir2/dir3/dir4/

36. ifconfig command examples

Use ifconfig command to view or configure a network interface on the Gnu/Linux system.
View all the interfaces along with status.
$ ifconfig -a
Start or stop a specific interface using up and down command as shown below.
$ ifconfig eth0 up

$ ifconfig eth0 down
37. uname command examples
Uname command displays important information about the system such as — Kernel name, Host name, Kernel release number,
Processor type, etc.,
Sample uname output from a Ubuntu laptop is shown below.
$ uname -a
Linux john-laptop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:12:52 UTC 2010 i686 GNU/Linux

38. whereis command examples

When you want to find out where a specific Unix command exists (for example, where does ls command exists?), you can execute the following command.
$ whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz
When you want to search an executable from a path other than the whereis default path, you can use -B option and give path as argument to it. This searches for the executable lsmk in the /tmp directory, and displays it, if it is available.
$ whereis -u -B /tmp -f lsmk
lsmk: /tmp/lsmk

39. whatis command examples

Whatis command displays a single line description about a command.
$ whatis ls
ls  (1)  - list directory contents

$ whatis ifconfig
ifconfig (8)         - configure a network interface

40. locate command examples

Using locate command you can quickly search for the location of a specific file (or group of files). Locate command uses the database created by updatedb.
The example below shows all files in the system that contains the word crontab in it.
$ locate crontab
/etc/anacrontab
/etc/crontab
/usr/bin/crontab
/usr/share/doc/cron/examples/crontab2english.pl.gz
/usr/share/man/man1/crontab.1.gz
/usr/share/man/man5/anacrontab.5.gz
/usr/share/man/man5/crontab.5.gz
/usr/share/vim/vim72/syntax/crontab.vim

41. man command examples

Display the man page of a specific command.
$ man crontab
When a man page for a command is located under more than one section, you can view the man page for that command from a specific section as shown below.
$ man SECTION-NUMBER commandname
Following 8 sections are available in the man page.
  1. General commands
  2. System calls
  3. C library functions
  4. Special files (usually devices, those found in /dev) and drivers
  5. File formats and conventions
  6. Games and screensavers
  7. Miscellaneous
  8. System administration commands and daemons
For example, when you do whatis crontab, you’ll notice that crontab has two man pages (section 1 and section 5). To view section 5 of crontab man page, do the following.
$ whatis crontab
crontab (1)          - maintain crontab files for individual users (V3)
crontab (5)          - tables for driving cron

$ man 5 crontab

42. tail command examples

Print the last 10 lines of a file by default.
$ tail filename.txt
Print N number of lines from the file named filename.txt
$ tail -n N filename.txt
View the content of the file in real time using tail -f. This is useful to view the log files, that keeps growing. The command can be terminated using CTRL-C.
$ tail -f log-file
43. less command examples
less is very efficient while viewing huge log files, as it doesn’t need to load the full file while opening.
$ less huge-log-file.log
One you open a file using less command, following two keys are very helpful.
CTRL+F – forward one window
CTRL+B – backward one window
44. su command examples
Switch to a different user account using su command. Super user can switch to any other user without entering their password.
$ su - USERNAME
Execute a single command from a different account name. In the following example, john can execute the ls command as raj username. Once the command is executed, it will come back to john’s account.
[john@dev-server]$ su - raj -c 'ls'

[john@dev-server]$
Login to a specified user account, and execute the specified shell instead of the default shell.
$ su -s 'SHELLNAME' USERNAME

45. mysql command examples

mysql is probably the most widely used open source database on Gnu/Linux. Even if you don’t run a mysql database on your server, you might end-up using the mysql command ( client ) to connect to a mysql database running on the remote server.
To connect to a remote mysql database. This will prompt for a password.
$ mysql -u root -p -h 192.168.1.2
To connect to a local mysql database.
$ mysql -u root -p
If you want to specify the mysql root password in the command line itself, enter it immediately after -p (without any space).

46. yum command examples

To install apache using yum.
$ yum install httpd
To upgrade apache using yum.
$ yum update httpd
To uninstall/remove apache using yum.
$ yum remove httpd

47. rpm command examples

To install apache using rpm.
# rpm -ivh httpd-2.2.3-22.0.1.el5.i386.rpm
To upgrade apache using rpm.
# rpm -uvh httpd-2.2.3-22.0.1.el5.i386.rpm
To uninstall/remove apache using rpm.
# rpm -ev httpd
48. ping command examples
Ping a remote host by sending only 5 packets.
$ ping -c 5 gmail.com
49. date command examples
Set the system date:
# date -s "01/31/2010 23:59:53"
Once you’ve changed the system date, you should syncronize the hardware clock with the system date as shown below.
# hwclock –systohc

# hwclock --systohc –utc

50. wget command examples

The quick and effective method to download software, music, video from internet is using wget command.
$ wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz
Download and store it with a different name.
$ wget -O taglist.zip http://www.vim.org/scripts/download_script.php?src_id=7701
Did I miss any frequently used Gnu/Linux commands? Leave a comment and let me know.
   Posted on  Sunday, August 23, 2015  / 

This article provides practical examples for 50 most frequently used commands want to become a sysadmin in Gnu/Linux.
This is not a comprehensive list by any means, but this should give you a jumpstart on some of the common Gnu/Linux commands. Bookmark this article for your future reference.

1. tar command examples
Create a new tar archive.
$ tar cvf archive_name.tar dirname/
Extract from an existing tar archive.
$ tar xvf archive_name.tar
View an existing tar archive.
$ tar tvf archive_name.tar
2. grep command examples
Search for a given string in a file (case in-sensitive search).
$ grep -i "the" demo_file
Print the matched line, along with the 3 lines after it.
$ grep -A 3 -i "example" demo_text
Search for a given string in all files recursively
$ grep -r "ramesh" *
3. find command examples
Find files using file-name ( case in-sensitve find)
# find -iname "MyCProgram.c"
Execute commands on files found by the find command
$ find -iname "MyCProgram.c" -exec md5sum {} \;
Find all empty files in home directory
# find ~ -empty
4. ssh command examples
Login to remote host
ssh -l jsmith remotehost.example.com
Debug ssh client
ssh -v -l jsmith remotehost.example.com
Display ssh client version
$ ssh -V
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
5. sed command examples
When you copy a DOS file to Unix, you could find \r\n in the end of each line. This example converts the DOS file format to Unix file format using sed command.
$sed 's/.$//' filename
Print file content in reverse order
$ sed -n '1!G;h;$p' openupdates.txt
Add line number for all non-empty-lines in a file
$ sed '/./=' openupdates.txt | sed 'N; s/\n/ /'
6. awk command examples
Remove duplicate lines using awk
$ awk '!($0 in array) { array[$0]; print }' temp
Print all lines from /etc/passwd that has the same uid and gid
$awk -F ':' '$3==$4' passwd.txt
Print only specific field from a file.
$ awk '{print $2,$5;}' employee.txt
7. vim command examples
Go to the 143rd line of file
$ vim +143 filename.txt
Go to the first match of the specified
$ vim +/search-term filename.txt
Open the file in read only mode.
$ vim -R /etc/passwd
8. diff command examples
Ignore white space while comparing.
# diff -w name_list.txt name_list_new.txt

2c2,3
< John Doe --- > John M Doe
> Jason Bourne
9. sort command examples
Sort a file in ascending order
$ sort names.txt
Sort a file in descending order
$ sort -r names.txt
Sort passwd file by 3rd field.
$ sort -t: -k 3n /etc/passwd | more

10. export command examples

To view oracle related environment variables.
$ export | grep ORACLE
declare -x ORACLE_BASE="/u01/app/oracle"
declare -x ORACLE_HOME="/u01/app/oracle/product/10.2.0"
declare -x ORACLE_SID="med"
declare -x ORACLE_TERM="xterm"
To export an environment variable:
$ export ORACLE_HOME=/u01/app/oracle/product/10.2.0

11. xargs command examples

Copy all images to external hard-drive
# ls *.jpg | xargs -n1 -i cp {} /external-hard-drive/directory
Search all jpg images in the system and archive it.
# find / -name *.jpg -type f -print | xargs tar -cvzf images.tar.gz
Download all the URLs mentioned in the url-list.txt file
# cat url-list.txt | xargs wget –c

12. ls command examples

Display filesize in human readable format (e.g. KB, MB etc.,)
$ ls -lh
-rw-r----- 1 ramesh team-dev 8.9M Jun 12 15:27 arch-linux.txt.gz
Order Files Based on Last Modified Time (In Reverse Order) Using ls -ltr
$ ls -ltr
Visual Classification of Files With Special Characters Using ls -F
$ ls -F
13. pwd command
pwd is Print working directory. What else can be said about the good old pwd who has been printing the current directory name for ages.

14. cd command examples

Use “cd -” to toggle between the last two directories
Use “shopt -s cdspell” to automatically correct mistyped directory names on cd
15. gzip command examples
To create a *.gz compressed file:
$ gzip test.txt
To uncompress a *.gz file:
$ gzip -d test.txt.gz
Display compression ratio of the compressed file using gzip -l
$ gzip -l *.gz
         compressed        uncompressed  ratio uncompressed_name
              23709               97975  75.8% asp-patch-rpms.txt

16. bzip2 command examples

To create a *.bz2 compressed file:
$ bzip2 test.txt
To uncompress a *.bz2 file:
bzip2 -d test.txt.bz2
17. unzip command examples
To extract a *.zip compressed file:
$ unzip test.zip
View the contents of *.zip file (Without unzipping it):
$ unzip -l jasper.zip
Archive:  jasper.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
    40995  11-30-98 23:50   META-INF/MANIFEST.MF
    32169  08-25-98 21:07   classes_
    15964  08-25-98 21:07   classes_names
    10542  08-25-98 21:07   classes_ncomp

18. shutdown command examples

Shutdown the system and turn the power off immediately.
# shutdown -h now
Shutdown the system after 10 minutes.
# shutdown -h +10
Reboot the system using shutdown command.
# shutdown -r now
Force the filesystem check during reboot.
# shutdown -Fr now

19. ftp command examples

Both ftp and secure ftp (sftp) has similar commands. To connect to a remote server and download multiple files, do the following.
$ ftp IP/hostname
ftp> mget *.html
To view the file names located on the remote server before downloading, mls ftp command as shown below.
ftp> mls *.html -
/ftptest/features.html
/ftptest/index.html
/ftptest/othertools.html
/ftptest/samplereport.html
/ftptest/usage.html
20. crontab command examples
View crontab entry for a specific user
# crontab -u john -l
Schedule a cron job every 10 minutes.
*/10 * * * * /home/ramesh/check-disk-space
21. service command examples
Service command is used to run the system V init scripts. i.e Instead of calling the scripts located in the /etc/init.d/ directory with their full path, you can use the service command.
Check the status of a service:
# service ssh status
Check the status of all the services.
service --status-all
Restart a service.
# service ssh restart

22. ps command examples

ps command is used to display information about the processes that are running in the system.
While there are lot of arguments that could be passed to a ps command, following are some of the common ones.
To view current running processes.
$ ps -ef | more
To view current running processes in a tree structure. H option stands for process hierarchy.
$ ps -efH | more

23. free command examples

This command is used to display the free, used, swap memory available in the system.
Typical free command output. The output is displayed in bytes.
$ free
             total       used       free     shared    buffers     cached
Mem:       3566408    1580220    1986188          0     203988     902960
-/+ buffers/cache:     473272    3093136
Swap:      4000176          0    4000176
If you want to quickly check how many GB of RAM your system has use the -g option. -b option displays in bytes, -k in kilo bytes, -m in mega bytes.
$ free -g
             total       used       free     shared    buffers     cached
Mem:             3          1          1          0          0          0
-/+ buffers/cache:          0          2
Swap:            3          0          3
If you want to see a total memory ( including the swap), use the -t switch, which will display a total line as shown below.
ramesh@ramesh-laptop:~$ free -t
             total       used       free     shared    buffers     cached
Mem:       3566408    1592148    1974260          0     204260     912556
-/+ buffers/cache:     475332    3091076
Swap:      4000176          0    4000176
Total:     7566584    1592148    5974436

24. top command examples

top command displays the top processes in the system ( by default sorted by cpu usage ). To sort top output by any column, Press O (upper-case O) , which will display all the possible columns that you can sort by as shown below.
Current Sort Field:  P  for window 1:Def
Select sort field via field letter, type any other key to return

  a: PID        = Process Id              v: nDRT       = Dirty Pages count
  d: UID        = User Id                 y: WCHAN      = Sleeping in Function
  e: USER       = User Name               z: Flags      = Task Flags
  ........
To displays only the processes that belong to a particular user use -u option. The following will show only the top processes that belongs to oracle user.
$ top -u oracle
25. df command examples
Displays the file system disk space usage. By default df -k displays output in bytes.
$ df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             29530400   3233104  24797232  12% /
/dev/sda2            120367992  50171596  64082060  44% /home
df -h displays output in human readable form. i.e size will be displayed in GB’s.
ramesh@ramesh-laptop:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              29G  3.1G   24G  12% /
/dev/sda2             115G   48G   62G  44% /home
Use -T option to display what type of file system.
ramesh@ramesh-laptop:~$ df -T
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/sda1     ext4    29530400   3233120  24797216  12% /
/dev/sda2     ext4   120367992  50171596  64082060  44% /home

26. kill command examples

Use kill command to terminate a process. First get the process id using ps -ef command, then use kill -9 to kill the running Gnu/Linux process as shown below. You can also use killall, pkill, xkill to terminate a unix process.
$ ps -ef | grep vim
ramesh    7243  7222  9 22:43 pts/2    00:00:00 vim

$ kill -9 7243
27. rm command examples
Get confirmation before removing the file.
$ rm -i filename.txt
It is very useful while giving shell metacharacters in the file name argument.
Print the filename and get confirmation before removing the file.
$ rm -i file*
Following example recursively removes all files and directories under the example directory. This also removes the example directory itself.
$ rm -r example

28. cp command examples

Copy file1 to file2 preserving the mode, ownership and timestamp.
$ cp -p file1 file2
Copy file1 to file2. if file2 exists prompt for confirmation before overwritting it.
$ cp -i file1 file2

29. mv command examples

Rename file1 to file2. if file2 exists prompt for confirmation before overwritting it.
$ mv -i file1 file2
Note: mv -f is just the opposite, which will overwrite file2 without prompting.
mv -v will print what is happening during file rename, which is useful while specifying shell metacharacters in the file name argument.
$ mv -v file1 file2

30. cat command examples

You can view multiple files at the same time. Following example prints the content of file1 followed by file2 to stdout.
$ cat file1 file2
While displaying the file, following cat -n command will prepend the line number to each line of the output.
$ cat -n /etc/logrotate.conf
    1 /var/log/btmp {
    2     missingok
    3     monthly
    4     create 0660 root utmp
    5     rotate 1
    6 }

31. mount command examples

To mount a file system, you should first create a directory and mount it as shown below.
# mkdir /u01

# mount /dev/sdb1 /u01
You can also add this to the fstab for automatic mounting. i.e Anytime system is restarted, the filesystem will be mounted.
/dev/sdb1 /u01 ext2 defaults 0 2

32. chmod command examples

chmod command is used to change the permissions for a file or directory.
Give full access to user and group (i.e read, write and execute ) on a specific file.
$ chmod ug+rwx file.txt
Revoke all access for the group (i.e read, write and execute ) on a specific file.
$ chmod g-rwx file.txt
Apply the file permissions recursively to all the files in the sub-directories.
$ chmod -R ug+rwx file.txt
33. chown command examples
chown command is used to change the owner and group of a file. \
To change owner to oracle and group to db on a file. i.e Change both owner and group at the same time.
$ chown oracle:dba dbora.sh
Use -R to change the ownership recursively.
$ chown -R oracle:dba /home/oracle

34. passwd command examples

Change your password from command line using passwd. This will prompt for the old password followed by the new password.
$ passwd
Super user can use passwd command to reset others password. This will not prompt for current password of the user.
# passwd USERNAME
Remove password for a specific user. Root user can disable password for a specific user. Once the password is disabled, the user can login without entering the password.
# passwd -d USERNAME

35. mkdir command examples

Following example creates a directory called temp under your home directory.
$ mkdir ~/temp
Create nested directories using one mkdir command. If any of these directories exist already, it will not display any error. If any of these directories doesn’t exist, it will create them.
$ mkdir -p dir1/dir2/dir3/dir4/

36. ifconfig command examples

Use ifconfig command to view or configure a network interface on the Gnu/Linux system.
View all the interfaces along with status.
$ ifconfig -a
Start or stop a specific interface using up and down command as shown below.
$ ifconfig eth0 up

$ ifconfig eth0 down
37. uname command examples
Uname command displays important information about the system such as — Kernel name, Host name, Kernel release number,
Processor type, etc.,
Sample uname output from a Ubuntu laptop is shown below.
$ uname -a
Linux john-laptop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:12:52 UTC 2010 i686 GNU/Linux

38. whereis command examples

When you want to find out where a specific Unix command exists (for example, where does ls command exists?), you can execute the following command.
$ whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz
When you want to search an executable from a path other than the whereis default path, you can use -B option and give path as argument to it. This searches for the executable lsmk in the /tmp directory, and displays it, if it is available.
$ whereis -u -B /tmp -f lsmk
lsmk: /tmp/lsmk

39. whatis command examples

Whatis command displays a single line description about a command.
$ whatis ls
ls  (1)  - list directory contents

$ whatis ifconfig
ifconfig (8)         - configure a network interface

40. locate command examples

Using locate command you can quickly search for the location of a specific file (or group of files). Locate command uses the database created by updatedb.
The example below shows all files in the system that contains the word crontab in it.
$ locate crontab
/etc/anacrontab
/etc/crontab
/usr/bin/crontab
/usr/share/doc/cron/examples/crontab2english.pl.gz
/usr/share/man/man1/crontab.1.gz
/usr/share/man/man5/anacrontab.5.gz
/usr/share/man/man5/crontab.5.gz
/usr/share/vim/vim72/syntax/crontab.vim

41. man command examples

Display the man page of a specific command.
$ man crontab
When a man page for a command is located under more than one section, you can view the man page for that command from a specific section as shown below.
$ man SECTION-NUMBER commandname
Following 8 sections are available in the man page.
  1. General commands
  2. System calls
  3. C library functions
  4. Special files (usually devices, those found in /dev) and drivers
  5. File formats and conventions
  6. Games and screensavers
  7. Miscellaneous
  8. System administration commands and daemons
For example, when you do whatis crontab, you’ll notice that crontab has two man pages (section 1 and section 5). To view section 5 of crontab man page, do the following.
$ whatis crontab
crontab (1)          - maintain crontab files for individual users (V3)
crontab (5)          - tables for driving cron

$ man 5 crontab

42. tail command examples

Print the last 10 lines of a file by default.
$ tail filename.txt
Print N number of lines from the file named filename.txt
$ tail -n N filename.txt
View the content of the file in real time using tail -f. This is useful to view the log files, that keeps growing. The command can be terminated using CTRL-C.
$ tail -f log-file
43. less command examples
less is very efficient while viewing huge log files, as it doesn’t need to load the full file while opening.
$ less huge-log-file.log
One you open a file using less command, following two keys are very helpful.
CTRL+F – forward one window
CTRL+B – backward one window
44. su command examples
Switch to a different user account using su command. Super user can switch to any other user without entering their password.
$ su - USERNAME
Execute a single command from a different account name. In the following example, john can execute the ls command as raj username. Once the command is executed, it will come back to john’s account.
[john@dev-server]$ su - raj -c 'ls'

[john@dev-server]$
Login to a specified user account, and execute the specified shell instead of the default shell.
$ su -s 'SHELLNAME' USERNAME

45. mysql command examples

mysql is probably the most widely used open source database on Gnu/Linux. Even if you don’t run a mysql database on your server, you might end-up using the mysql command ( client ) to connect to a mysql database running on the remote server.
To connect to a remote mysql database. This will prompt for a password.
$ mysql -u root -p -h 192.168.1.2
To connect to a local mysql database.
$ mysql -u root -p
If you want to specify the mysql root password in the command line itself, enter it immediately after -p (without any space).

46. yum command examples

To install apache using yum.
$ yum install httpd
To upgrade apache using yum.
$ yum update httpd
To uninstall/remove apache using yum.
$ yum remove httpd

47. rpm command examples

To install apache using rpm.
# rpm -ivh httpd-2.2.3-22.0.1.el5.i386.rpm
To upgrade apache using rpm.
# rpm -uvh httpd-2.2.3-22.0.1.el5.i386.rpm
To uninstall/remove apache using rpm.
# rpm -ev httpd
48. ping command examples
Ping a remote host by sending only 5 packets.
$ ping -c 5 gmail.com
49. date command examples
Set the system date:
# date -s "01/31/2010 23:59:53"
Once you’ve changed the system date, you should syncronize the hardware clock with the system date as shown below.
# hwclock –systohc

# hwclock --systohc –utc

50. wget command examples

The quick and effective method to download software, music, video from internet is using wget command.
$ wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz
Download and store it with a different name.
$ wget -O taglist.zip http://www.vim.org/scripts/download_script.php?src_id=7701
Did I miss any frequently used Gnu/Linux commands? Leave a comment and let me know.

Posted in: , Read Complete Article»
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License .