BIP KB Tag: shell

A Comparative Introduction To FreeBSD For Linux Users

Introduction To Free BSD FreeBSD is a free and open source Unix-like operating system and a popular server platform. While FreeBSD and other BSD-based systems share much in common with systems like Linux, there are points where these two families diverge in important ways. In this guide, we will briefly discuss some commonalities between FreeBSD and Linux before moving on to a more extended discussion of the important differences be...
By daniel, January 23, 2015


How To Change The Language In A Linux (BaSH) Shell

To set your current shell to a different language you use the bash variable LANG followed by the language you want: LANG=en_us_8859_1 If you want to set that so its used every time add an export line to your .bashrc for that user. The .bashrc file can be found in each user's homedir, if they don't have one you can create it: export LANG=en_us_8859_1 The command locale will show you informa...
By yang-li, January 24, 2015


How To Change The Time Zone In Linux

To set the timezone in Linux, update /etc/localtime with the appropriate timezone file from /usr/share/zoneinfo. Example: rm -f /etc/localtime ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime This would set your time zone to PST/PDT (Pacific Time) because that is the time zone Los Angles is located in....
By steve, January 24, 2015


How To Change The Shell Type For A Specific User

If you would like to change the shell type for a specific user you can do the following. In this example we will change the shell type for username jimmysmith to Bash: chsh -s /bin/bash jimmysmith If you have any questions feel free to leave me a note below and I will get back to you....
By wen, January 24, 2015


How To Disable Shell Access For A Specific User

If you would like to disable shell access for a specific user you can do the following. In this example we will disable shell access for username johnsmith: chsh -s /bin/false johnsmith Please note that this disables shell access for the user when they are logging in using the normal means. If the user is able to execute commands through a PHP/CGI script they can spawn their own shell. ...
By tilisha, January 24, 2015


How To Harden Your TCP/IP Stack Against SYN Floods

SYN Floods Denial of service (DoS) attacks launch via SYN floods can be very problematic for servers that are not properly configured to handle them. Proper firewall filtering policies are certainly usually the first line of defense, however, the Linux kernel can also be hardened against these types of attacks. This type of hardening is useful for SYN floods that attempt to overload a particular service with requests (such a...
By jessica, January 24, 2015


How To Check If You Are Vulnerable To Bash ShellShock

Introduction Bash shellshock Bash shellshock, what a fitting name. The latest major headache for Sys Admins, Developers…well pretty much anyone who has a*nix system running… has been brought to our attention by Security Researcher Stephane Chazelas. The impact of this vulnerability is far bigger than the recent SSL Heartbleed vulnerability. While most people would not think of a bash being something you would be able to acces...
By chris, March 19, 2015


How To Clear Linux / UNIX BASH Shell Command Line Cache / History

Introduction to Shell Q. I just noticed faq about clearing dns cache and there are lots of commands stored in my cache. Can you tell me the command to clear out my command history or cache from a shell prompt? A. Many programs read input from the user a line at a time. The GNU history library is able to keep track of those lines, associate arbitrary data with each line, and utilize information from previous lines in composing ne...
By tommy, June 3, 2015