Updating unix profile
I particularly enjoyed how the author made sure to provide solid background and practical examples.
If you have been using Linux for a while you are probably familiar with the but only if the users shell is a Interactive Shell (aka Login Shell) The difference between when these two files are executed are dependent on the type of login being performed.Do you think Linux is solely for sys admin professionals?Or do you think that getting a Linux system up and running isn't worth the hassle?# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # the default umask is set in /etc/profile; for setting the umask # for ssh logins, install and configure the libpam-umask package.# see /usr/share/doc/bash/examples/startup-files for examples. #umask 022 # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . When you sign in to comment, IBM will provide your email, first name and last name to DISQUS.
Use vi command: umask 022 if [ -f ~/.bashrc ]; then .
~/.bashrc fi if [ -d ~/bin ] ; then PATH=~/bin:"$" fi alias dironly='printf "%s\n" */' alias dironlyv='echo */.' alias dragon=~/bin/show export PATH=/usr/lib/jvm/java-6-sun-1.6.0.00/bin:$ The author is the creator of nix Craft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting.
Common uses for ~/.bash_profile are to set environment variables such as PATH, JAVA_HOME, create aliases for shell commands and set the default permissions for newly created files etc.
The file ~/.bashrc is similar, with the exception that .bash_profile runs only for Bash login shells and .bashrc runs for every new Bash shell.
It's never easy trying to keep up to date with the many platforms. In this article, I'll be looking at getting a development environment set up on Linux.