Very useful Linux administration commands

0 comments

Love Linux Live Linux (c) www.sahipasand.com

I primarily use Linux on my laptop, I have both Ubuntu 12.10 and OpenSUSE 12.2 running on the laptop. And been having at least 2 linux distros on the laptop since 2009.

In this post I will share with you, some very useful linux commands -

man any_command  the manual for target command>
pwd  
ls files in current directory>
ls  –a maximum information about all files, including hidden>
mv source destination  a file or directory>
rm target 
cp source destination  file or directory>
mount /dev/device_name /media/device_name filesytem>
umount /media/device_name <Unmount>
df –h filesystem and available disk space  in KB, MB, GB>
du 
ps – ef all running processes, with full details>
top system monitor showing a more extensive view of all processes and system resources>
nohup command & a process in the background and have it keep running after you log off>
~/  user's home directory>
ifconfig  network interfaces>

iwconfig  wireless network interfaces>
ssh username@ip_address  to a remote server>
ping ip_address  to see if target is online and responding>
traceroute6 ip_address  network route to target>
netstat  
iptables –L  firewall rules>
adduser a new user>
usermod user privileges (be very careful with this one)>
deluser  
chmod <# Change privileges over file or directory >
chown user_name:group_name directory_name owner of a file or directory>
su username  become a different user>
users usernames of logged in users>
Infact, you can administer your mysql database directly from the CLI
CREATE DATABASE databasename; 
CREATE USER username@localhost IDENTIFIED BY 'password'; a new user>
show tables;  database schema>

Know other useful Linux commands? Please share via the comment box.

Learning Linux? Free online books and practical help tips

0 comments

Well just in case you still do not realize that I am typing this post on a Linux OS. Checkout the following screenshot.

Yes, I am typing out this post from my Ubuntu Linux OS, and I also have OpenSUSE, Windows 7 RC & Windows 8 RC(no $ to buy commercial version) all running on the same laptop, my venerable SONY VAIO.

So how did I learn to use Linux?
It all started in 2008. I started from ground zero. I was at the peak of my IT certification frenzy and I heard of this Linux + certification, so I decided to attempt the certification. I had done Oracle 10g Certified Administration Associate (OCA 10g) and Cisco Certified Network Associate (CCNA). 

I spoke with a senior colleague, and he was too busy to even hear me out. I proceeded to help myself, I downloaded Ubuntu 8.04 alternate CD (my greatest mistake in IT, so far) and ended up irreparably crashing my Windows. The problem was that I downloaded an alternate CD, fortunately Ubuntu no longer makes alternate CDs (I think). Alternate CD is purely a commandline based installation CD, and I knew nothing about Linux file structure - root folder, home folder, ext2 file system, swap space... I got stuck for what seemed like an eternity at specifying root file and choosing file system, it won't let me choose NTFS and I knew jack about the other options. Finally, after trying out so many combinations, it finally accepted one. I had installed my first Linux OS all by myself, without any help. I was extremely happy, even though my Windows was gone.


Ever since, I have grown in my understanding and use of Linux. I have installed Linux for over 20 people, installed nearly all the free distros and have been quadri/penta-booting OSs on my laptop since 2009. And I now train people on how to use Linux.

How did I achieve my expertise?
I read all I could on Linux. I kept practicing, sharing my knowledge and helping people solve their computer problems with my Linux knowledge. It got me the fix-it guy status among my friends.
Reading and practicing is the only way to learn Linux.

Where can you get good Linux books for free?
Linux prides itself as being free. And so many people have put up their Linux how-to books for free online. And a good starting point will be -
http://www.linux.org/tutorial/view/beginners-level-course 

Introduction to Linux 
http://tille.garrels.be/training/tldp/index.html

Linux Newbie Administration Guide 

http://lnag.sourceforge.net/downloads/LinuxNewbieAdministratorGuide.pdf

Bash Guide for Beginners 

http://tille.garrels.be/training/bash/

Ubuntu Pocket Guide & Reference

 http://ubuntupocketguide.com/download_main.html

I assure you that reading this book and practicing on a real Linux system, you'll become a Linux guru too.


 
Follow me on Twitter | About me | Terms of Service | Privacy Policy