find more information on ext2/3/4 filesystem

2013-09-20 2 min read Linux
English: Ext3 & Ext4 file systems: fsck time vs Inode Count (Photo credit: Wikipedia) In my previous post on check filesystem regurlarly, I mentioned tune2fs. That tool give quite a lot of information. But just in case, you did not find what you are looking for in the output, then you can get much more information on these partitions with the dumpe2fs command. dumpe2fs You do really get a lot of information, and here are some of them: Continue reading

Delete all but some directories

2013-08-16 1 min read bash Fedora Linux
I think, like me, you would have faced a lot of situations, where you wanted to delete all the files or directories in a location, leaving only the required files/directories. So, I have a directory containing lots of files/directories and I want to delete most of them except some 5/10 of them, how to I do it. I finally wrote a small script to do that. First save list of files that you do not want to delete in file called “listnames” and then execute the below script. Continue reading

configure firewall – the easy way.

2013-04-24 1 min read Fedora Linux
It is good practice to keep iptables/firewall enabled. But configuring it is difficult, do you agree. Not any more 🙂 Install firewall-config sudo yum install firewall-config This will install a GUI application, which you can run with “Firewall” application in the dash or with “firewall-config” in terminal. It is pretty straight forward to use this tool, even if you don’t have much knowledge on Firewall/iptables. Related articles Your Ubuntu Linux Security How do I configure my windows firewall Defending your Computer Life

steam on Linux – for Fedora

2013-02-22 1 min read Fedora
The Fedora Project logo (Photo credit: Wikipedia) I was trying to get steam on linux on my Fedora box. Headed over to steam website, but was astonished to find only Ubuntu client over there. A little googling presented me with the developer website blog of valvesoftware.com. So, here is the link for you, just in case you are searching for the same: https://developer.valvesoftware.com/wiki/Steam_under_Linux#Fedora Related articles Steam on Fedora – Lets get gaming! Continue reading

quick bash script for datewise backup of directory

2012-12-12 1 min read bash Linux
I was working on something and the data was very critical and needed backup. I wrote a bash script to back up the data every 5 hours with cron and bash script. Thought I will share that with you. Here is the script. #!/bin/bash - #=============================================================================== # # FILE: backup.sh # # USAGE: ./backup.sh # # DESCRIPTION: Backup all the current files. # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), amit. Continue reading
Older posts Newer posts