Linux File Permissions: Understanding setuid, setgid, and the Sticky Bit

Before delving into this topic, the understanding of chmod and chown are compulsory here because these are the base for this topic. So, first understand chmod and chown command and read about these command. Let’s move with a basic introduction about these command. After reading this basic introductory you have roughly understand what these command …

chown Command

chown is an abbreviation for “change owner”, which is pretty self-explanatory. It change the ownership of file. You may have notice in chmod command that it change the read, write and execute permission not the ownership of file. So, to change the ownership of file we will use the chown command. Later on, we will …

How to export and import database in PostgreSQL through command line?

Export a PostgreSQL Database with pg_dump Command To export a database through command line. PostgreSQL has provided command-line utility to effectively backup your important information which is pg_dump and a pg_dumpall. The pg_dump is a command-line tool that allows you to dump the content of a specified database into a single file. The pg_dump command provides several options that …