formats

Use awk instead of cut to cut out specific columns of a file

Use awk instead of cut to cut out specific columns of a file | For separating out specific columns of a file, try using awk! The command to use is: $ awk ‘{print $9,$10}’ file.txt > file_cut.txt Where 9 or 10 indicates the ninth or tenth column of a text file. For an example, say you have the output of an ls -l: drwxr-xr-x 13 root root 4096 Jun

formats

How to install host, nslookup and other BIND tools on Windows

Published on January 5, 2013, by + in windows.

How to install host, nslookup and other BIND tools on Windows | For a Linux admin using Windows, cygwin unfortunately does not provide host, nslookup, or other bind tools. I’ll show you how to download these BIND tools directly from ISC and have them work in your cygwin terminal! Note: this assumes you already have a working cygwin install. First, download the latest version of BIND for

formats

Make your terminal snow

Published on December 24, 2012, by + in linux.

Make your terminal snow | Make your terminal snow with this cool python terminal app. The github page is: https://gist.github.com/1508912

formats

Encode or Decode base64 from the Command Line

Published on September 1, 2012, by + in linux.

Encode or Decode base64 from the Command Line | If you have ever needed to quickly decode or encode base64, Linux has a command line utility called base64 that works great. I’ll show you how it works! To encode text to base64, use the following syntax: $ echo ‘scottlinux.com rocks’ | base64 c2NvdHRsaW51eC5jb20gcm9ja3MK To decode, use base64 -d. To decode base64, use a syntax

formats

Perform DNS Lookups with the host command

Published on April 26, 2012, by + in linux, osx, sysadmin.

Perform DNS Lookups with the host command | The dig command is commonly used to make DNS queries. However, a much overlooked command is the host command. Here are some quick tips for a useful tool to add to your bag of tricks or to impress your friends. The syntax is: $ host [domain.com] When run with no options, a simple quick summary

formats

OS X Monitor Virtual Memory Usage from Command Line

Published on November 11, 2011, by + in osx.

OS X Monitor Virtual Memory Usage from Command Line | OS X has a simple command line tool to monitor virtual memory usage: vm_stat. I’ll show you how it works! Crack open a terminal and run vm_stat. You will see an output somewhat like below: $ vm_stat Mach Virtual Memory Statistics: (page size of 4096 bytes) Pages free: 54492. Pages active: 541989. Pages inactive: 155818.

formats

OS X Lion Show Hidden Library Folder

Published on October 31, 2011, by + in osx.

OS X Lion Show Hidden Library Folder | To enable viewing the Library folder which is hidden in OS X Lion, crack open a terminal (Utilities > Terminal) and use this terminal command: chflags nohidden ~/Library Cool!

formats

Quick Intro to zsh: auto complete

Quick Intro to zsh: auto complete | zsh or the z shell is an interactive shell that builds upon features of other shells such as bash, ksh, and tcsh. zsh is great for advanced script monkeys but also is an excellent simple bash replacement for the regular joe user. Here is a quick intro to the auto complete features of zsh! On

formats

Clear or Flush Arp Cache in OS X

Published on August 3, 2011, by + in osx.

Clear or Flush Arp Cache in OS X | To clear or delete the arp cache in Mac OS X, crack open a terminal and issue the following command: $ sudo arp -a -d Done! Thanks Theo

formats

Bash Tips – Return to Previous Location

Published on May 1, 2011, by + in linux, osx, sysadmin.

Bash Tips – Return to Previous Location | Ok this is a quick one, but useful! To return to the previous working directory, simply type: cd – and hit enter. Cool!

Home Posts tagged "terminal"