Posts Tagged - zsh

Advanced bash and zsh

General, useful things

curl cheat.sh/command_to_search shows a cheatsheet with options for this command

Snap

Offline .snap file install

To install a .snap file you downloaded you need to

sudo snap ack downloaded_file.snap
sudo snap install downloaded_file.snap

# if the ack doesn't work, you can always install it with
sudo snap install --dangerous downloaded_file.snap

Processing files and data

  • find . -iname "*file_to_search*" search something at current directory
  • locate file_to_search search through whole computer
  • rg general searching through data files. Better than grep -r
  • diff -y --suppress-common-lines file1 file2 | grep '^' | wc -l count number of changes between 2 files

Read More