Writing about unix


Often forgotten the file command will give you a simple summary of a file's type and content.

At the prompt enter file <filename> where <filename> is the name of the file you are interested in.

You will receive output detailing the files contents, e.g.

A Word Document.doc: Composite …

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 …

Create your own bash pipes to send program output between shells, processes and users.

You may already be familiar with the | command commonly used to send the output of one command into another, e.g. cat /var/log/messages | less. Here we create user-defined pipes to carry output between shells …

GNU Screen is a command-line application that allows use of multiple virtual sessions within a single real terminal or remote session. Importantly, it allows for persistent running of command-line applications independent of the shell that initiated them program, meaning active applications can persist during disconnection.

This is just one of …

Established 1980