Tags » Bash

Show last logins after logging in

Display current open connections, all of today and yesterday’s entries

Did a Sunday project today: Print last logins after you connect to your remote machine. 85 more words

Linux

S-DES Bash File

After going through an S-DES sheet in my cryptography lessons I wanted to make a script that would use S-DES to encrypt stuff. I figured it would be good practice for bash and for learning how S-DES works. 367 more words

Computer

bash env ; and && gotcha

if you want to change a bash environment variable you need to set it in each and every bash multistatement

$ env TERM=lpr env|grep TERM ; env TERM=lpr env|grep TERM
TERM=lpr
COLORTERM=xfce4-terminal
TERM=lpr
COLORTERM=xfce4-terminal

$ env TERM=lpr env|grep TERM && env TERM=lpr env|grep TERM
TERM=lpr
COLORTERM=xfce4-terminal
TERM=lpr
COLORTERM=xfce4-terminal



Fsse

Router Refresh Unix Script (Part 14) - Add / Remove Support

Refresh script is done, but it doesn’t mean that I can’t expand it by adding new features, which might elevate the script to more than just router refresh. 5,037 more words

Labs

Upgrade to Bash 4 on Mac OSX

I came across some article regarding dictionary array for bash 4. I wanted to try it out but I am currently running bash 3.2 in Mac OSX Maverick. 238 more words

Bash

30 Handy Bash Shell Aliases

An alias is nothing but shortcut to commands. The alias command allows user to launch any command or group of commands (including options and filenames) by entering a single word. 2,366 more words

Linux/UNIX