background preloader

Bash Hackers Wiki Front page [Bash Hackers Wiki]

Bash Hackers Wiki Front page [Bash Hackers Wiki]

http://wiki.bash-hackers.org/

Related:  LinuxBash & Terminal

Cheat Sheet: Crontab by Example Today's article may be pretty basic for regular readers but hopefully some may find it useful. This article will cover creating a crontab entry and show some examples of common crontabs. The Cron daemon is a service that runs on all main distributions of Unix and Linux and specifically designed to execute commands at a given time. These jobs commonly refereed to as cronjobs are one of the essential tools in a Systems Administrators tool box. 20 amusing Linux commands to have fun with the terminal The linux terminal is not always dull and boring. There are commands to make it do some funny acts to entertain the user. Here is a small collection of such commands. 1. Cowsay Install cowsay with apt.

7 Linux Shell Tips For Increased Productivity Love it or hate it, the command line is here to stay. Sure, there are new options emerging like TermKit but it’s unlikely that the command line will ever really go away. Those who take the time to master it can run productivity circles around their peers, but with the astonishing assortment of CLI tools available, where do you even begin? We’ve compiled a few of the most useful tools and tricks into this guide to help new users gain some new knowledge, and old pros learn some new tricks.

Examples of small bash programs Back to Main Page Here is a set of small scripts, which demonstrate some features of bash programming. //=================================================================================== // set new prompt //=================================================================================== PS1=">" PS1="[${LOGNAME}@$(hostname)] # " PS1="[${LOGNAME}] # " PS1='$PWD $ '

How to Learn bash shell and scripting – The best tutorials for bash beginners Bash (Bourne-Again SHell) is a Linux and Unix-like system shell or command language interpreter. It is a default shell on many operating systems including Linux and Apple OS X. If you have always used a graphic user interface like KDE or Gnome or MS-Windows or Apple OS X, you are likely to find bash shell confusing. Find & Scan Wireless Networks from the Command Line in Mac OS X A long hidden airport command line utility buried deep in Mac OS X can be used to scan for and find available wireless networks. This powerful tool is very helpful for network admins and systems administrators, but it’s handy for the average user to help discover nearby wi-fi routers as well. Accessing the Wi-Fi Utility in OS X Command Line To use this tool to find nearby wifi networks, the first thing you’ll want to do is create a symbolic link from the airport utility to /usr/sbin for easy access. The command for this varies per version of OS X in use, select which is relevant to your OS X version on the Mac in question. Launch the Terminal and type the following command:

Crazy POWERFUL Bash Prompt From setting the window title to show the last run command (filtered), saving your history and keeping multi-session history intact, resetting the color/cursor/highlighting of errant color-emitting commands, these 2 prompt examples do more than meet the eye and are extremely fast. Don't have much time or just don't care? No problem, this is a simple copy and paste... here's one to start (all 1 line, just cut and paste right into the shell, once you've made sure its safe).

Awk - A Tutorial and Introduction - by Bruce Barnett Your browser does not have Javascript enabled. I use Javascript for analytics, and to show ads which pay for the maintenance Last modified: Thu Apr 23 16:37:47 EDT 2015 Part of the Unix tutorials And then there's My blog Table of Contents Copyright 1994,1995 Bruce Barnett and General Electric Company Weave - All you need to connect, observe and control your containers What You Will Build Weave provides a software network optimized for visualizing and communicating with applications distributed within Docker containers. Using tools and protocols that are familiar to you, Weave’s network topology lets you to communicate between containerized apps distributed across multiple networks or hosts more quickly and efficiently. With Weave you focus on developing your application, rather than your infrastructure. As demonstrated in this tutorial, Weave works seamlessly with other tools such as Vagrant.

finiteloops.com Unfortunately, the Terminal.app comes with OS 10.4 doesn’t have the tab functionality. Most of the Mac users who like to work on several instances of shell without cluttering the desktop use iTerm. However, there is a nother alternative to this called screen. screen is a powerful shell command which lets you open multiple instances of shell in a single window. You can use default keyboard shortcuts to navigate between different instances or you can even define your own. To make use of the screen command you should first create a configuration file and save it in user directory.

Shell startup scripts — flowblok’s blog If you’re a regular shell user, you’ve almost certainly got a .bash_profile or .bashrc script in your home folder, which usually contains various tweaks, such as setting environment variables (adding that directory to $PATH), telling your shell to do clever things (like set -o noclobber) and adding various aliases to commands (like alias please=sudo). (If you’re really organised, you’ll have all your dotfiles in a repository somewhere so that you can keep your settings synchronised across all the machines you work on.) Anyhow, I suspect that few people know when things like .bash_profile and .bashrc actually get executed. When I started, I just followed people’s advice of putting stuff in .bashrc, and then when it didn’t work, into .bash_profile. My solution to this problem is to define some new dotfile folders, one for each shell (.bash/, .zsh/ and .sh/), and one for the shell-independent files (.shell/): “But!”

Related: