Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 OPERATING SYSTEM


  10 tools to make your shell script more powerful

Many people mistakenly think that shell scripts can only be run in command line. In fact shell can also call some GUI components such as menus,alert dialogs, progress bar etc. You can control the final output, cursor position and various output effects. Here we introduce some tools which can help you create powerful, interactive and user friendly Unix/Linux shell scripts.1. notify-sendThis command can let you inform the process to send a desktop notification to users. This can be used to send prompt to users or display some information to users. You can download it :$ sudo apt-get install libn...

7,016 0       GUI SHELL ZENITY


  Convert time to Unix time

Unix time is defined as the number of seconds that have elapsed since midnight Coordinated Universal Time (UTC), 1 January 1970,not counting leap seconds. It is used widely in Unix-like and many other operating systems and file formats. It is neither a linear representation of time nor a true representation of UTC. Unix time may be checked on some Unix systems by typing date +%s on the command line.Sometimes it's a bit difficult to compare times stored in different applications or systems with different formats. For example, if we want to compare a DATE in Oracle with a date string in Unix, we...

6,560 0       UNIX TIME ORACLE DATE CONVERSION TIMESTAMP


  Using vi key bindings in bash and zsh

Takeaway: If you prefer to use vi or vim for command-line editing, you can configure shells to use vi key bindings instead of emacs-style key bindings. Here’s how. By default, most shells use emacs-style key bindings for command-line editing and modification. For users of vi or vim, however, you can instead configure shells to use vi key bindings instead. This is done by editing ~/.bashrc in the case of bash, or ~/.zshrc in zsh and adding:set -o viin bash, and the following for zsh:bindkey -vOnce you have saved either ~/.bashrc or ~/.zs...

6,512 0       LINUX BASH VI ZSH KEY BINDING


  Common usage of ls command in Linux

In Linux, ls might be one of the most frequently used commands. It is used to list files in a specific directory. In most cases, we may just use ls -l to list the files under a directory. But have you explored other usages of this command. In this post, we will summarise some other common usages of ls commandAssuming we have below directory structure in our system, let's see them using tree command.List details of the filesIf we want to list the details of the files in /home/alvin/test_dir, we can funls -lR /home/alvin/test_dir/Output:[alvin@VM_0_16_centos test_dir]$ ls -lR...

6,209 0       LS SHELL LINUX


  Build RPM package on Linux

1. Check the OS version and core version#uname -a#more /etc/redhat-release2. Create relative directories/usr/src/redhat/SOURCES    //Store source codes, patches, icons etc/usr/src/redhat/SPECS        //Store specs about the process of building RPM packages/usr/src/redhat/BUILD     //File after uncompressed are stored here/usr/src/redhat/RPMS     //Store the binary files built with rpmbuild/usr/src/redhat/SRPMS   //Store source code package built with rpmbuild #mkdir -p /usr/src/redhat/#cd /usr/src/redhat/...

5,994 0       LINUX BUILD RPM


  Shell script common interview questions

Shell script is frequently used when monitoring system status on Linux. It's not an easy task to write shell script but it's a very important skill for developers and system administrators to ease work and automate common tasks. This post will share some common interview questions about shell script.1. Get random characters(8 characters)Method 1# echo $RANDOM |md5sum |cut -c 1-8471b94f2Method 2# openssl rand -base64 4vg3BEg==Method 3# cat /proc/sys/kernel/random/uuid |cut -c 1-8ed9e032c2. Get random numbers(8 digits)Method 1# echo $RANDOM |cksum |cut -c 1-823648321Method 2# openssl rand -...

5,772 0       LINUX INTERVIEW SHELL SCRIPT


  Snipping Tool is moving on Windows 10

There is some recent change for a built-in tool on Windows 10 where the Snipping Tool is moving. Snipping Tool is a tool on Windows for taking screenshots and editing screenshots taken. But now it's moving to a new tool called Snip & Sketch which has enhanced features.Now if you try to launch Snipping Tool, you will notice there is a notification telling that the Snipping tool is moving to a new tool called Snip & Sketch.And you can click Try Snip & Sketch to launch the new tool.The new tool has a new modern face and it has a clear difference as the old tool where it has a clear in...

5,708 1       SCREENSHOT WINDOWS 10 SNIPPING TOOL SNIP & SKETCH


  Migrate from MySQL to MariaDB in Ubuntu

The biggest movement of escaping from MySQL in this century starts, openSUSE,Fedora and Arch have started to use MariaDB instead of MySQL as their default database. Many people also dislike the attitude of Oracle on MySQL, so it's reasonable to migrate from MySQL to MariaDB. The whole process is not complicated. Here we share the steps to migrate from MySQL to MariaDB in Ubuntu.Installation procedure:sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943dbModify /etc/apt/sources.list, add:# MariaDB 5.5 repository list - created 2013-04-08 14:44 UTC# http://mariadb.org/m...

5,609 0       UBUNTU MYSQL MARIADB