• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gokul Deepak

Gokul Deepak

GoCool and Debug

  • Home
  • Terraform
  • WordPress
  • Android
  • How to
  • About Me

Gokul Deepak S

PM2 Cheatsheet – Important Commands

October 12, 2020 by Gokul Deepak S Leave a Comment

PM2 Cheatsheet

Commands Action
pm2 start app.js Start a process
pm2 start app.js -name App1 Start a process with a name
pm2 start app.js -i 0 Start processes with Load Balancing
Commands Action
pm2 list Lists all processes
pm2 jlist
pm2 prettylist
pm2 monit
pm2 reset 0 Resets meta data – Started Time
pm2 updatePM2 Updates PM2 Memory
Commands Action
pm2 log 1 Displays log for the particular process
pm2 flush Empties all PM2 log files
pm2 reloadLogs Reloads all PM2 Logs
Commands Action
pm2 save saves all processes
pm2 start all
pm2 stop all
pm2 restart all
pm2 reload all
pm2 delete all
pm2 start 0 / stop 0 / restart 0 / delete 0

Filed Under: Node JS

MongoDB Terminal commands – Cheatsheet

September 14, 2020 by Gokul Deepak S 2 Comments

Import Mongodb from csv:

All data should be comma separated and each rows are line separated

mongoimport --db dbname --collection colectionname --type csv --file filename.csv --headerline

To Find the Range of dates

db.softwareInventory.find({ date: { $gte: ISODate("2020-10-16T00:00:00.000Z"), $lt: ISODate("2020-10-16T22:47:55.302Z") } })

Filed Under: MongoDB

Ubuntu 20.04 commands for Beginners

September 11, 2020 by Gokul Deepak S Leave a Comment

dateDisplays the current date and time of the system
calDisplays the current month’s calendar
uptimeshows the uptime of the system
whoamicurrent user’s name
userslogged in user name
idcurrent user’s id
who
w
manreference manual of other commands
lsLists Directory
catView whole File at once
moreView File page by page
lessView File page by page (Loads faster than more)
headDisplay first 10 lines of a file
tailDisplay last 10 lines of a file
wc -lCount number of lines in a file

Filed Under: How to

All important PSQL Commands

September 11, 2020 by Gokul Deepak S Leave a Comment

CREATE DATABASE database_name;

GRANT ALL PRIVILEGES ON DATABASE database_name TO user_name;

ALTER DATABASE database_name
OWNER TO new_user;

ALTER DATABASE database_name
RENAME TO new_name;

begin;
rollback;
savepoint point_name;
rollback to point_name; (Then you can commit until the savepoint)
end transaction;
commit; (end transaction and commit both are same)

Filed Under: PostgresQL

Git Command Cheat Sheet from basic to advance

August 25, 2020 by Gokul Deepak S Leave a Comment

Here Let me use this page as git command cheat sheet.

Git global setup

git config --global user.name "Administrator"
git config --global user.email "[email protected]"

Create a new repository

git clone http://192.168.2.151:8081/root/test1.git
cd test1
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Push an existing folder

cd existing_folder
git init
git remote add origin http://192.168.2.151:8081/root/test1.git
git add .
git commit -m "Initial commit"
git push -u origin master

Push an existing Git repository

cd existing_repo
git remote rename origin old-origin
git remote add origin http://192.168.2.151:8081/root/test1.git
git push -u origin --all
git push -u origin --tags

Filed Under: Git

Add Text Start or End in each line – Notepad++

August 23, 2020 by Gokul Deepak S Leave a Comment

Problem:

Add a text at the start of every line

Solution:

Press Ctrl+H keys
In search and replace box
search for ^ and in replace text box type the text that you want to display.

Problem:

Add a text at the end of every line

Solution:

Press Ctrl+H keys
In search and replace box
search for $ and in replace text box type the text that you want to display.

Filed Under: Notepad++

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Interim pages omitted …
  • Page 11
  • Go to Next Page »

Primary Sidebar

Popular Pages

  • Home
  • How to find the date of the Facebook group it was created
  • How to install OwnCloud on Bluehost
  • Combine two separate files line by line in Notepad++
  • Terraform
  • How to Stock ROM using SP flash

Archives

Categories

  • Android
  • Apache
  • AWS
  • Blogger
  • Computer Tips
  • DevOps
  • Docker
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • Hosting
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Node JS
  • Notepad++
  • PostgresQL
  • Terraform
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One AWS Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS Notes OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Tomcat Wordpress plugin

Copyright © 2025 ยท Maintained by GokulDeepak