Reload .bash_profile without logging in again

Update your session to new settings in .bash_profile without logging out and back in again.

At the prompt enter:

source ~/.bash_profile

add the following line to your .bash_profile or .bash_aliases file alias reload='source $HOME/.bash_profile' after running source ~/.bash_profile the command reload will be available to do the same thing :)

Continue reading

Get file type information from the command line  bash

Often forgotten the file command will give you a simple summary of a file's type and content. At the prompt enter file where is the name of the file you are interested in. You will receive output detailing the files contents, e.g. A Word Document.doc ... More

Discussion

comments powered by Disqus