Setup Unix Profile

cat > ~/.bash_aliases
.profile _orig
.bashrc _orig

In the File ” .bash_aliases ”  add following.

 alias c=clear
 alias e='exit'
 alias m='less -i'
 alias ll='ls -alrtF'
 alias dird='ls -alrt | grep ^d'


 alias shut='sudo shutdown -P now'

After this does not go into .bash_aliases file.

This is just for reference to update/install Linux OS.

dd bs=4M status=progress if=ubuntu-16.04-desktop-amd64.iso of=/dev/sdc1

main@main-desktop:~/Downloads$ pwd
/home/main/Downloads
main@main-desktop:~/Downloads$ ll ubuntu-16.04.1-desktop-amd64.iso 
-rw-rw-r-- 1 main main 1513308160 Aug 17 16:48 ubuntu-16.04.1-desktop-amd64.iso
main@main-desktop:~/Downloads$
cd ~main/Downloads
sudo dd bs=4M status=progress if=ubuntu-16.04-desktop-amd64.iso of=/dev/sdb 
sudo apt-get install unetbootin
sudo unetbootin
set -o vi

# This is I think original PS1
## PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$'

# This PS1 prints HOSTNAME in window /h and VERSION /v
PS1='\[\e]0;\u@\v: \h: cmd# \#: /pts/\l : Time \t: \w\a\]${debian_chroot:+($debian_chroot)}\u@\$:\#:\w\$ '

# This PS1 prints USER /u \$ and then VERSION \v
PS1='\[\e]0;\u@\$: \v: cmd# \#: /pts/\l : Time \t: \w\a\]${debian_chroot:+($debian_chroot)}\u@\$:\#:\w\$ '

alias c=clear
alias d=date
alias e=exit
alias m='less -i'

alias ll='\ls -alrt'
alias llA='\ls -Alrt'

alias dird='\ls -alrt| grep ^d'

alias vmplayer='cd /home//Hadoop/cloudera-quickstart-vm-5.4.2-0-vmware; vmplayer cloudera-quickstart-vm-5.4.2-0-vmware.vmx; cd -; '







# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
 PATH="$HOME/bin:$PATH"
fi


. ${HOME}/bin/.chk_bin ${HOME}/GURU/script

export LPDEST=''
echo -e "Print ----- lpr -P  /usr/share/cups/data/testprint -----\n\n LPDEST ----- lpstat -----\n\n\n"

. .Mongo; echo -e "WRA Mongo WRA\t\t:hll2320d:\n\n\n\n\n"
Advertisements

One thought on “Setup Unix Profile

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s