10x Developer
  • Introduction
  • HTML
    • HTML DOM Jquery
    • HTML: Form
    • CSS
    • CSS Layout
    • CSS Flexbox
    • CSS Grid
    • SASS/LESS
    • CSS/LESS/SASS Cookbook
    • Bootstrap
  • JavaScript
    • JavaScript
    • ES6
    • TypeScript
    • JavaScript Testing
    • JavaScript Event Loop
    • DOM
    • Web APIs
    • JSON
    • RegEx
    • Functional Programming
    • JavaScript Lib
    • CoffeeScript
    • CoffeeScript to ES6 cheatsheet
  • Angular.js
    • Angular
    • Angular Cookbook
    • Angular Mistakes I Made
    • Angular 1.x
  • React.js
    • React.js
  • Node
    • Node.js
    • CLI command line tool
    • Electron / Atom
    • NW.js (node-webkit)
  • Serverless
    • AWS Lambda
    • Google Cloud Function
    • Actions on Google / Google Assistant
  • Full Stack Development
    • HTTP
    • Meteor
    • MongoDB
    • Digital Ocean
    • UI
    • Sketch
    • Web Dev Resources
  • Lang
    • Ruby
  • Know Your Tools
    • Chrome DevTools
    • Editor: VS Code
    • Editor: Vim
    • Editor: Sublime
    • Editor: Atom
    • Windows
    • Git
    • Linux / Bash
    • Mac
  • Cheatsheets
Powered by GitBook
On this page
  • Commands
  • Bash
  • zsh
  • iTerm2
  1. Know Your Tools

Linux / Bash

PreviousGitNextMac

Last updated 6 years ago

Commands

  • check disk usage: df -h

  • check mem usage: free -m

  • list by date: ls -trla

  • cd - to switching between previous working directory.

Bash

  • CTRL+R to search history (reverse-i-search), press again to search incrementally.

Movements

  • CTRL+U clear current line

  • CTRL+A jump to start of line; CTRL+E jump to start of line

zsh

  • reload after editing .zshrc: . ~/.zshrc

  • use history search plugin:

iTerm2

  • CMD + D vertical split

  • CMD + SHIFT + D horizontal split

Refs:

http://unix.stackexchange.com/a/248789
https://www.blockloop.io/mastering-bash-and-terminal