Solutionist's Blog

Tech | Health | Life | Travel

how to Clear bash history -linux – Mac OS X

Bash is a Unix shell written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell (sh).[3][4] Released in 1989,[5] it has been distributed widely as the shell for the GNU operating system and as a default shell onLinux and Mac OS X. how stuff work:  normally after typing commands bash will keep the history in ~/.bash_history file  up on log out   you can login […]

Network interface settings – CentOS

Configuration of the “/etc/sysconfig/network-scripts/ifcfg-eth0” file In this file, you would find your basic network device configuration. Here, ifcfg-eth0 is the first Ethernet device; ifcfg-eth1 would be the second Ethernet NIC (network interface card), and so forth. In this file, you can have quite a few settings. Directives Required / Optional Expected Settings Comment DEVICE= Required ethX You must have […]

Mount NTFS partition in Linux

Mount NTFS partition in Linux Mount NTFS partition in Redhat Enterpris Linux / Ubuntu Linux Enterprise Linux distributions like Redhat Enterprise Linux ( RHEL ) does not provide native support to Windows NTFS partitions. However you may wand to mount a NTFS formated partiiton in your RHEL box. Here is a simple howto to mount […]

cheat sheet – find command

1. Basic find command # find -name “TestFile” 2. Find Files Using Name and Ignoring Case # find -iname “TestFile” 3. Limit Search To Specific Directory Level Using mindepth and maxdepth # find / -maxdepth 3 -name passwd -maxdepth –> will go 3 directories below — / 1st; /etc 2nd; /usr/bin 3rd # find / […]

Setgid and Sticky bit in Linux

Special permissions on files and directories in linux are : SetUID, SetGID and Sticky bit. With the help of “chmod” command  we can implement the special permissions on file and directories. SUID / Set User ID : A program is executed with the file owner’s permissions (rather than with the permissions of the user who executes it). SGID / Set Group ID […]

Secured By miniOrange