Category: Ubuntu


–nt file test operator in bash

File based con­di­tion for if state­ments in bash Con­di­tion: [ new­er­file –nt old­er­file ] Descrip­tion: new­er­file was changed more recently than old­er­file, or if new­er­file exists and old­er­file doesn’t. Exam­ple: if [ file1.txt –nt file2.txt…


Set the terminal title in ubuntu desktop — gnome

Cus­tom ter­mi­nal titles are an easy way to keep track of the processes in each ter­mi­nal, when you have mul­ti­ple ter­mi­nal tabs open in the same win­dow. Ubuntu desktop(Gnome) lets you set them using…