today's howtos
-
How to use snapshots on OpenSUSE
OpenSUSE is one of a few Linux operating systems that use BtrFS by default instead of Ext4. The BtrFS filesystem is excellent on OpenSUSE, and with it, users can take filesystem snapshots for each update and change made and roll it back if anything happens. In this guide, we’ll show you how you can use the robust snapshot feature in both OpenSUSE Leap and Tumbleweed.
-
How To Use Chown Command in Linux: Examples and Quick Tips
On Linux, every file has an owner and a group. They are given access rights accordingly.
With the chown command, you can change the owner and group of a file or directory. Configuring file and folder permissions is critical to the security of the files.
In this brief guide, we will cover all you need to know to use chown to change permissions. We use chown version 8.28 in Ubuntu 18.04.2. We also provide some examples.
You will need a Linux machine with access to a terminal. You need to have superuser privileges (so you can use the sudo command) to change ownership of any file.
-
How to Install ClamAV on Fedora 37/36/35
ClamAV is a versatile and powerful antivirus toolkit that can protect against such malicious software. One of its most important uses is on mail servers, which can scan incoming emails for viruses and other threats. Still, it can also be used on file hosting servers to periodically scan files that are available for download to the public. In addition to its use on servers, ClamAV can also be used on individual computers to scan for malware and other threat. The antivirus software also supports multiple file formats, utilizes multi-thread scanner features, and receives updates for its signature database daily to sometimes numerous times per day for the latest protection making it a popular software choice for Fedora users.
The following tutorial will teach you how to install ClamAV on Fedora 37/36/35 desktop or server and some basic scan commands using the command line terminal.
-
Bash test command explained with examples
Comparison and checking might not be suitable in real life, but it is essential in programming. It helps to ensure that you have good code that interacts well and works as expected. Comparison of various values, checking of the different properties of files, and logical reasoning with and/or methods is a massive part of any programming language and the entire basis of reasoning within any script’s framework. For Bash, the command test provides many of these features, and as we will see, an even more simplified version of that also exists. So let us know what it is all about.
-
How to use the distinct count query in MongoDB
Displaying a specific number of documents in a particular collection is one of the retrieval queries. Use the distinct count query when you have hundreds of documents in a collection and want to know the total number of distinct documents in that collection.
In today’s MongoDB tutorial series post, we shall discuss the fundamental notion of distinct count queries and their use in MongoDB.
-
How to list databases in MongoDB
MongoDB is a NoSQL database that can store many forms of data, including unstructured data. Data in MongoDB is stored as collections and documents rather than relations. This enables it to keep any form of data. MongoDB has hundreds of operators and accepts several document storage and retrieval techniques.
MongoDB also includes the Mongo Shell, a command-line interface and interactive tool written in JavaScript. Using Mongo Shell, you may perform queries and engage with your MongoDB databases, collections, and documents. You need to know the database name and its fundamental attributes while working on a database. You may quickly list the available databases for this purpose, and MongoDB has several choices for checking the size of databases, approved databases, or empty databases.
This post will teach you about the various Mongo Shell list database commands and how to list databases in JSON format.
-
How to Install GIT on Ubuntu 22.10/22.04/20.04
Git is a free and open-source distributed version control system designed to handle everything from small to extensive projects quickly and efficiently. Git is easy to learn and has a tiny footprint with lightning-fast performance. It outclasses SCM tools like Subversion or CVS with features like cheap local branching, convenient staging areas, and multiple workflows.
The following tutorial will teach you how to install GIT on Ubuntu 22.10, 22.04, or 20.04 Linux with instructions on using the standard repository or importing the latest version from the Ubuntu Git maintainers teams. The tutorial will cover some basic Git commands required for everyday use.