• Delete all but the last 1000 lines of file

    $ ex -c '1,$-1000d' -c 'wq' file</p> View this command to comment, vote or add to favourites View all commands by wytten12 Diff your entire server config at ScriptRock.com </div> Read More here.

  • [one-liners] Find Reverse Depends of a Package

    Sometimes you have a package installed and you want to know what other packages depend on it (such as a lib package). This one-liner only works on Debian/Ubuntu (apt/dpkg) based systems, but I'm sure a simmilar method works for rpm based distros such as CentOS. for depends in $( apt-cache...

  • How To Install KDE Connect on Ubuntu 16.04 LTS (Updated)

    Using KDE Connect on Ubuntu you can send files from your phone to your Ubuntu PC, see Android notifications, sync clipboard and a whole lot more. This post, How To Install KDE Connect on Ubuntu 16.04 LTS (Updated), was written by Joey Sneddon and first appeared on OMG! Ubuntu!. </div>...