5879 Views
In the Linux file system to get the size of a directory, you need to calculate and sum all file size of that directory.
The command du is used for summarizing disk usage of each file, recursively for directories.
Get the size of a directory:
du -hs /path/to/directory
Here ...
Sheetal Kumar
Apr 04, 2020
6245 Views
To install Postgres in Ubuntu you need a VM Instance on Compute Engine. Connect your VM Instance using the SSH option then follow the steps below.
Step 1:
First, you need to install the Postgres package and a -contrib package that adds some additional utilities and functionality.
sudo ...
Sheetal Kumar
Apr 03, 2020
24742 Views
After creating a Python App on your local machine you need to deploy your app on the server so that app can be accessed from anywhere. On your local environment, you run your app by using python or a python3 prompt like below.
python myapp.py
The app will stop after you close the terminal. ...
Sheetal Kumar
Mar 06, 2019
7712 Views
Linux server is very efficient to manage files and processes. Sometimes you need to take backup of files or need to download code to modify locally. In linux server to download files either you use ftp or scp. SCP stands for Secure copy protocol, that is a means of securely transferring ...
Sheetal Kumar
Mar 05, 2019
22893 Views
Linux server provides a terminal to manage the server. Sometimes you need to upload file or folder or directory on the Linux Server. Using your terminal, you can upload files and folder directly to your server by SCP command. Here we are providing the way to upload file on Linux Server using SCP.
The ...
Sheetal Kumar
Mar 05, 2019
6848 Views
Ubuntu is a Linux Operating System so you need to have Root privilege to get the process information.
netstat command is used to show the ports and processes in Linux.
netstat -nlp command is used to show the processes using network.
netstat -nlp
Now filter the process ...
Sheetal Kumar
Sep 04, 2018
3645 Views
In Linux Ubuntu, you do not have any GUI mode to display the RAM detail and Hard Disk details. So you need the commands to view the server status in Ubuntu.
1. View RAM Details
You can view RAM details if different units like KB, MB, GB etc. The default is KB.
free
Output:
total
used
free
shared ...
Sheetal Kumar
Jul 25, 2018
21024 Views
On Linux server, you mostly face low memory issue, mostly on AWS instance free tier. When you want to install any new thing they need more free memory. If your server has 1 GB Ram and your application is required more than 1 GB memory to run then swap memory is very useful to resolve the memory issue ...
Sheetal Kumar
Mar 31, 2018
8737 Views
PostgreSQL is the open source relational database system. PostgreSQL has some advanced features of database like
User-defined types
Table inheritance
Sophisticated locking mechanism
Foreign key referential integrity
Views, rules, subquery
Nested transactions (savepoints)
Multi-version ...
Sheetal Kumar
Feb 13, 2018
5172 Views
Linux uses chmod and chown to change access permission of directory and files.
Chmod is used for change mode for file and direcories. It changes access permission for all users in Linux.
Chown is used to get the ownership for file and derectory. It changes access permission for given user.
There ...
Sheetal Kumar
Jan 30, 2018