Select, update, delete, create, alter, and drop a table in MongoDB in Linux Mint 20
This article will guide you on the basic operations that you can perform on #MongoDB #tables or #collections. By following the very same syntax and operations, you can even write other complex #queries that can easily serve the purpose of your particular task.
MongoDB is almost 100 times faster than traditional database system like RDBMS, which is slower in comparison with the #NoSQL databases. MongoDB supports deep query-ability i.e we can perform dynamic queries on documents using the document-based query language that's nearly as powerful as #SQL.
To open a collection in MongoDB:
1. Finding the current database you're in. db.
2. Listing databases. show databases.
3. Go to a particular #database. use <your_db_name>.
4. Creating a Database.
5. Creating a Collection.
6. Inserting #Data.
7. Querying Data.
8. Updating documents.
How to modify font type, size, and color of Ubuntu 20.04 LTS terminal ?
This article will guide you on different methods to modify font type, size, and color of #Ubuntu 20.04.
Ubuntu Mono from the Ubuntu Font Family (font.ubuntu.com) is the default GUI monospace terminal font on Ubuntu 11.10 (Oneiric Ocelot).
GNU Unifont (unifoundry.com) is the default font for the CD #bootloader menu, #GRUB bootloader, and alternate (text-based) installer where a software framebuffer is in use.
To change text color in Ubuntu #terminal:
1. Open your terminal and right-click inside it.
2. Select profile and profile preferences. 3. Go to colour header button.
4. Unmark user colours of system theme.
5. Select any colour you would like in the text or background and named your choice.
6. In addition You can also add an image onto your terminal as background.
Steps to Configure and host an application in Apache web server in Linux ?
This article will guide you on the basics of #Apache configurations on Linux. This includes #firewall configuration, managing Apache services, setting up virtual hosts, changing default listening #ports, and allowing/denying specific IPs from accessing the #sites. For more information about Apache configurations, visit Apache server official documentation at http://httpd.apache.org/docs/. Apache #HTTP Server is a free and open-source web server that delivers web content through the internet. It is commonly referred to as Apache and after development, it quickly became the most popular HTTP client on the web. To Set Up Virtual Hosts in Apache: 1. Set up a #domain name. The server block that is enabled by default is capable of serving documents from /var/www/html. 2. Enable the domain configuration file. 3. Test for errors. 4. Test if Apache is serving your domain name.
Steps to start, stop or restart services in Ubuntu 20.04 LTS ?
This article will guide you steps on how you stop, start, or restart a #service in #Ubuntu 20.04. service operates on the files in /etc/init. d and was used in conjunction with the old init system. #systemctl operates on the files in /lib/systemd . If there is a file for your service in /lib/systemd it will use that first and if not it will fall back to the file in /etc/init. To list all loaded services on your system (whether active; running, exited or failed, use the list-units subcommand and --type switch with a value of service. To Check running process in #Linux: 1. Open the #terminal #window on Linux. 2. For remote Linux server use the ssh command for log in purpose. 3. Type the ps aux command to see all running process in Linux. 4. Alternatively, you can issue the top command or htop command to view running process in Linux.
Steps to install PostgreSQL on Linux Mint 20 ?
This article will guide you on the steps to #install #PostgreSQL on your #Linux #Mint 20 system and hence you can use it for efficiently managing your relational #databases. PostgreSQL is an advanced version of #SQL which provides support to different functions of SQL like foreign keys, #subqueries, #triggers, and different user-defined types and functions. To install PostgreSQL Linux Mint: 1. Add the #PGDG APT source file. 2. Add the PostgreSQL Package Repository Key. 3. Update, Upgrade, and Install PostgreSQL. 4. The postgres user. 5. The postgres database. 6. The #psql #Command Line Utility. 7. Create super user account. 8. Login using our newly created account.
Steps to create and run a C program using Ubuntu 20.04 LTS ?
This article will guide you on steps to write your first C #program. Hello World! the program may seem useless and simple, but it is the best way to get started on learning how to program. By writing this yourself, you better under concepts that may otherwise seem abstract and vague. To run C program: Open #Command #prompt or Terminal(if you use #Ubuntu or Mac OS), and go to the directory where you have saved the hello. c program file. Now, to run the program, type in ./a. out and you will see Hello, World displayed on your screen. To compile and run a C program on Ubuntu Linux using the gcc compiler: 1. Open up a #terminal. Search for the terminal application in the Dash tool (located as the topmost item in the Launcher). 2. Use a text editor to create the C source code. 3. #Compile the program. 4. Execute the program.