Author: Jeffrin

sort – sort lines of text files

$cat test.txt sept aug jan dec oct apr feb mar11 mar1 $sort test.txt apr aug dec feb jan mar1 mar11 oct sept $sort -M test.txt jan feb mar1 mar11 apr aug sept oct dec $

Read More

What is Tracker?

https://wiki.gnome.org/Projects/Tracker/WhatIsTracker

Read More

fold: Wrap input lines to fit in specified width

$cat test.pl use strict; use File::Rename (); use Pod::Usage; main() unless caller; sub main { my $options = File::Rename::Options::GetOptions or pod2usage; mod_version() if $options->{show_version}; pod2usage( -verbose => 2 ) if $options->{show_manual}; pod2usage( -exitval => 1 ) if $options->{show_help}; @ARGV = map {glob} @ARGV if $^O =~ m{Win}msx; File::Rename::rename(\@ARGV, $options); } sub mod_version { print __FILE__ …

Read More

command to install build-essential in debian ?

$sudo apt-get install build-essential Reading package lists… Done Building dependency tree Reading state information… Done build-essential is already the newest version (12.4). The following packages were automatically installed and are no longer required: alsa-base ant ant-optional app-install-data aptdaemon aptdaemon-data bluez-alsa bluez-gstreamer bogofilter bogofilter-bdb bogofilter-common cryptsetup-bin diffstat esound-common espeak-data evolution-webcal firebird2.5-common-doc fonts-lyx fonts-sil-gentium fonts-sil-gentium-basic freerdp-x11 gcalctool …

Read More

How do I see where all my big files are?

$du -sk * | sort -n 4 index.php 4 myicon.png 4 programming 4 python 4 README.md 4 wp-blog-header.php 4 wp-comments-post.php 4 wp-config-sample.php 4 wp-cron.php 4 wp-links-opml.php 4 wp-load.php 4 xmlrpc.php 8 english 8 readme.html 8 testing 8 wp-activate.php 8 wp-mail.php 8 wp-trackback.php 12 commandline 12 github 12 ui 16 webex 16 wp-settings.php 20 knowledge 20 …

Read More

Installing dig command on Debian

$sudo apt-get install -y dnsutils Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: libcaribou-gtk-module libcaribou-gtk3-module libebur128-1 libevent-2.0-5 libgdict-1.0-10 libgdict-common libgmime-2.6-0 libgnome-autoar-common libgom-1.0-common libjavascriptcoregtk-3.0-0 libnotmuch4 libpcre16-3 libperl5.24 libraw15 libsexy2 libwebkitgtk-3.0-0 libwebpmux2 python-olefile rename tcpd Use ‘sudo apt autoremove’ to remove them. The …

Read More

The SIGTERM signal is sent to a process to request its termination

$ps aux | grep nautilus jeffrin 3412 0.4 2.4 839692 96464 ? Sl 18:45 0:12 /usr/bin/nautilus –gapplication-service jeffrin 4714 0.0 0.0 12904 1064 pts/1 S+ 19:35 0:00 grep nautilus $kill -TERM 3412 $ps aux | grep nautilus jeffrin 4722 0.0 0.0 12904 1012 pts/1 S+ 19:36 0:00 grep nautilus $

Read More