Skip to content

Instantly share code, notes, and snippets.

@pajaydev
Last active May 25, 2020 22:30
Show Gist options
  • Save pajaydev/8f13a2b79efc0126add9e768d1196857 to your computer and use it in GitHub Desktop.
Save pajaydev/8f13a2b79efc0126add9e768d1196857 to your computer and use it in GitHub Desktop.
Useful commands on Linux/OSX

Useful Commands

## search throught the command history 
ctrl-r

!! ## Run the last executed command
top -0 vsize #check why mac is slow
uptime #check how long the system has been running.

which node #to know the environment path variable of the node bin.
lsof -i:8080 ## To know list of all files listening to port 8080

Install chrome driver and check the version.

## Download the zip file here 
## https://sites.google.com/a/chromium.org/chromedriver/downloads
sudo unzip <downloaded zip file name> chromedriver -d /usr/local/bin/
## using command
brew cask install chromedriver
chromedriver --version

To remove npm manually

rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment