Blog Archives

YUM Downgrade Basic Usage

This is quick tip, howto downgrade packages using YUM (example) on Fedora, CentOS, Red Hat (RHEL). This works simply with yum downgrade command and is very usefull when package(s) downgrade is needed some reason. YUM Downgrade Basic Usage Downgrade is

Tagged with: , , ,
Posted in How To, Linux, One Liners

Quit Bash Shell Without Saving Bash History (5 Methods)

Sometimes it is very useful to delete / remove Bash history partially or completely when log out. Here is my favourite methods howto log out / quit / exit Bash shell without saving Bash history. Remove Only Current Session Bash

Tagged with: , , , , ,
Posted in How To, One Liners

HOW TO SET FILE ASSOCIATIONS OF FILE WITH COMMAND LINE IN LINUX

QUES: Why would one choose to use command line for changing file associaiton……..? ANS: Several times you come across a situation when you have to setup file associations from the command line. Like sometimes, file managers just won’t work, other

Tagged with: , , ,
Posted in Linux

HOW TO CONFIGURE NETWORK CONNECTION FROM COMMAND LINE

STEP 1) ASSIGN IP ADDRESS AND GATEWAY Although, we have got a wonderful tool “NetworkManager” to manage our interface connection from GUI,but when we are using console then how to manage those interfaces and configuring them becomes a headache for

Tagged with: , , , ,
Posted in Linux

FIND YOUR PUBLIC IP FROM COMMAND LINE

Lots of times you need to determine your public IP address, if you are using Linux operating system to power your PC, you may use these one liners to find your IP –>Using wget [root@test ~]# wget -q -O –

Tagged with: , , , ,
Posted in Python script

I/O REDIRECTION

There are always three default files open, stdin (the keyboard), stdout (the screen), and stderr (error messages output to the screen). Redirection simply means capturing output from a file, command, program, script, or even code block within a script and

Tagged with: , , , ,
Posted in Linux

REMOVE 32 bit PACKAGES FROM 64bit(CENTOS)

CentOS follows the upstream source in this respect, and the x86_64 installation by default will install ix86 32-bit packages on a 64-bit installation for compatibility purposes. Many server system administrators (and some desktop users) want a pure 64-bit system and

Tagged with: , , ,
Posted in Linux

RPM MANAGEMENT TIPS

REBUILD THE RPM FROM SRPM ============================ The pre-requisite packages required are — [user@linux ~]$yum groupinstall “Development Tools”  [user@linux ~]$yum install yum-utils OR you can install only rpm-build.For CentOS most SRPMs targetted to be rebuilt on CentOS also need certain rpmbuild

Tagged with: , , , , ,
Posted in Linux

BASH SCRIPTING

CREATE INFINITE WHILE LOOP WITH EMPTY EXPRESSION================================================== #!/bin/bash while :do echo “infinite loops [ hit CTRL+C to stop]”done OR #!/bin/bash chekpt=5 while [ “$chekpt” -lt 6 ]do echo “infinite loops [ hit CTRL+C to stop]” done CREATE A FILE WITH

Tagged with: , , , , ,
Posted in shell scripting
  • An error has occurred; the feed is probably down. Try again later.
  • An error has occurred; the feed is probably down. Try again later.
  • An error has occurred; the feed is probably down. Try again later.