Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts

Bash terminal greeter

https://yalneb.blogspot.com/2019/04/bash-terminal-greeter.html

Wouldn't it be nice that every time you open up a terminal (or log in remotely), you would be greeted by a general overview of your system's health? Well, with this tool you can address this very problem.

This is a simple bash script that displays on top of new terminals a simple summary of your system's specs (useful if its a remote machine you just logged in) and a summary of your systems current load. Moreover, if the load is high, the color will change to draw your attention quickly, and when possible, will display what is causing the problem. Such as a report of CPU hungry processor an error report if a systemctl service has failed to load.

Improved ls command to list your linux files.


If you use Linux on a daily basis, then you probably run the 'ls' commands several times a day to list files. This is one of the most used commands on Linux (aside from 'cd') and still, it is sometimes a mess. With the following script, you can "wrap" the normal 'ls' command to:
  1. Highlight folders with colors, to better distinguish them from files.
  2. Sort folders before regular files
  3. Sort hidden folders and hidden files last
  4. Print information in a human-readable format

TMUX: useful key-bindings

http://yalneb.blogspot.com/2017/05/tmux-useful-key-bindings.html

Continuing my TMUX series, this post will show you some useful keybindings which will make you much more productive, not only when working with TMUX, but also while configuring it to your liking.

Colorize your terminal bash prompt

http://yalneb.blogspot.com/2016/05/colorize-your-terminal-bash-promt.html
Do the colors of your terminal confuse you when trying to separate your bash promt from your commands and text output? Or are you simply bored of your terminal? Then spice things up with this bash script. Also, your productivity will benefit a lot from it.

I use bash colors in my prompt for:
  • Better identify my bash, my commands and terminal output
  • Identify each host my color to avoid confusions
  • Warn me with a bright color when logged in as root
  • Give my terminals a personal touch 

New post available: you might want to check out this post to see all you can do to your terminal with a bit of color :)

Fix a messed up terminal

http://yalneb.blogspot.com/2016/05/fix-messed-up-terminal.html

In the last ten years I have encountered this situation over a broad spectrum of distribution and terminal: line wrapping gets totally messed up and starts erasing and mixing with the previous line. And although the terminal still executes the correct commands and not the mashup it is showing, it is quite frustrating.

TMUX: better mouse support

http://yalneb.blogspot.com/2016/05/tmux-better-mouse-integration.html


Continuing my TMUX series, this time we will add better mouse support to your TMUX. (I also works over SSH if your local machine has a mouse).

You will add following functionality to your mouse:

  • Resize panels draging on borders
  • Select active panel with left click
  • Zoom panel with right click
  • Create window with right click on status bar
  • Drag and interchange panels
  • Drag windows
  • Close panels with mouse-wheel click
  • Close windows on the status bar with mouse-whell click

TMUX: sleek theme

http://yalneb.blogspot.com/2016/05/tmux-sleek-theme.html

I have talked about TMUX in my previous post. It is an awesome tool that can increase your productivity exponentially. How ever, it is extremely ugly and distracting if you use the default theme.

It is difficult and very subjective to explain something visual, but I have come up with a simple, minimalist, futuristic and sleek theme that works great whether your terminal supports 256 colors, or only 16.

Do not worry, you can install my theme in less than 15 seconds and enjoy it right away.

TMUX: get some juice out of your terminal

http://yalneb.blogspot.com.es/2016/05/tmux-get-some-juice-out-of-your-terminal.html

TMUX is sysadmin's black magic.

If you ever had to remotely log into one fo your servers (or even your raspberryPi), you know how annoying it is when you want several terminals: either you open locally several terminals and log in each of them over SSH, or you simply surrender.

In the same context, I am sure you had to run a lengthy command on the remote machine, but could disconnect because that would kill the remote process nor change from one computer to another while sharing the remote session.

If you identify your self with this, then call 555-get-me-tmux and order now! (or better yet, continue reading)