My Software Engineering Notes Help

Basic CLI Commands

Linux Flavors

Basic Commands

Change Owner

sudo chown -R [username] /[path to file or folder]

-R: recursive

Change Permissions

sudo chmod -R ugo+rwx /[path to file or folder]

-R: recursive

u = user g = group o = other

r = read w = write x = execute

PostgreSQL Commands

  • check postgreSQL service status

sudo service postgresql status
  • start postgreSQL service

sudo service postgresql start
  • stop postgreSQL service

sudo service postgresql stop
  • run postgreSQL

sudo service postgresql start sudo -u postgres psql
  • seed a database (make sure you are in the project directory)

psql < filename.sql
Last modified: 10 March 2024