sedlav

16 Practical rsync examples

rsync

Rsync is a fast and versatile file synchronization tool that allows to copy and sync files locally and from rsync service or any device that supports remote shell (Rsync does not support synchronization between remote devices). Rsync offers a large number of options that control every aspect of its behaviour and permit very flexible specification of the set of files to be copied.

16 Practical rsync examples Read More »

VIM case sentive / insensitive search

VIM

How to make VIM insensitive to uppercase and lowercase letters in a search?

Vim by default is case sensitive but this behavior can be modified through the options: ignorecase, ic, noignorecase, noic or adding c to the search pattern

Note: If you are in insert mode you must press Esc to switch to Normal mode

Case insentive temporarily

:set ignorecase

O

:set ic

Case sensitive

:set noignorecase

O

:set noic

Using c

/category\c

Find all words that contain category regardless of uppercase and lowercase letters

Case insensitive permanently

Edit the file /etc/vimrc (global) or ~/.vimrc (at the level of user) and add:

set ic

O

set ignorecase

Further reading

  • man vim
  • :help 'ignorecase', :help ignorecase

VIM case sentive / insensitive search Read More »

Kill GNU/Linux process from the command line

Desktop like GNOME, KDE, XFCE, LXDE have a task manager that allows you to terminate a process using the graphical interface, but not always we have managers like these or we simply work without graphical interface (server) and we need to kill a particular process because it does not respond to any action, and that's when should lend hands to the console

Kill GNU/Linux process from the command line Read More »