Found 989 Articles for Software & Coding

Difference between composition and aggregation

Kiran Kumar Panigrahi
Updated on 20-Feb-2023 16:52:02

36K+ Views

Both Composition and Aggregation are types of association which are used to represent the relationship between two classes. But they are absolutely different from each other. The basic difference between the two is that composition is a strong association, while aggregation is a weak association. Read this article to learn more about composition and aggregation and how they are different from each other. What is Composition? Composition is a method of wrapping the simple objects or data types into a single unit. It is a type of association used to represent the relationship between two classes. Composition is considered as ... Read More

How to Add Cron Jobs to A Specific User in a Linux System

karthikeya Boyini
Updated on 21-Jan-2020 07:29:21

3K+ Views

This article we will teach you to schedule a cron job to be executed at a specific time in a day.General Syntax of a Cron JobMIN    HOUR    Day of month    Month    Day of Week    Command 0-59   0-23       1-31          1-12       0-6       linux command or scriptTo see the list of cron jobs which exists on the machine, run the below command# crontab -u test1 -l no crontab for test1To Add the New Cron Job to Test1 User, run the below Command #crontab -u test1 ... Read More

Difference between green and native thread

Himanshu shriv
Updated on 21-Jan-2020 07:34:28

1K+ Views

Green threads are created and scheduled by Virtual machine without using OS libraries. “Green” was the project code name of the thread project which was developed by the Java, therefore the name of the thread is “Green”. It can not make use of multiprocessor.On the other hand, Native threads are created and scheduled by Kernel of operating system. It can swap between threads from running thread to non-running thread. All modern OS supports native thread. Sr. No.KeyGreen ThreadNative Thread1Basic Green threads are created and scheduled by Virtual machine without using OS librariesNative threads are created and scheduled by Kernel of operating system2Platform Dependent It ... Read More

Learn How to Manage Various Logs using Logrotate in Linux

karthikeya Boyini
Updated on 21-Jan-2020 05:47:52

101 Views

Logrotate is designed for administration of Ubuntu systems that generate giant numbers of log records. It allows automatic rotation, compression, removal, and mailing of log records. Each log file could also be handled every day, weekly, monthly, or when it grows. This article explains about -“Learn how to manage various log using logrotate in Linux”To install logrotate, use the following command –$ sudo apt-get install logrotateThe sample output should be like this –Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libecap3 squid-common squid-langpack Use 'sudo apt ... Read More

How To Set-Up Apache to use Password Authentication on Ubuntu 16.04

karthikeya Boyini
Updated on 20-Jan-2020 11:04:18

431 Views

In this article, we will learn about how to setup and configure the Apache Web server to restrict from visitors without authentication where we can hide some important and critical information to the un-authenticated users.PrerequisitesWe needed an Ubuntu machine with a non-root user with Sudo privileges.An Apache2 web server installed on the machine.Installing the Apache UtilitiesWe needed to install an Apache2 utility package called ‘htpasswd’ where this utility is a part of ‘apache2-utils’ packages.This will help us to create and manage the username and password which is needed to access the restricted part of the website.Below is the command to ... Read More

How to Set Up and Configure Jekyll Development Site on Ubuntu 16.04

karthikeya Boyini
Updated on 20-Jan-2020 10:59:24

59 Views

In this article, we will learn how to setup and configure Jekyll Development Site. Jekyll provides the benefits of the Content Management System (CMS) with performance and security which appears in the database-driven sites. It is also called as blog-aware which has features of handling the date-organized contents. It is especially suitable for the people who work off-line, which also provides the lightweight editor with content management which has the version control for tracking the changes made on their websites.PrerequisitesA machine with Ubuntu 16.04 installed.A user with Sudo permissions on the machine.Installing the Jekyll Development Site on Ubuntu 16.04Before we ... Read More

How to Run a Cron Job Every Day on a Linux System

karthikeya Boyini
Updated on 20-Jan-2020 10:46:57

4K+ Views

This article will teach you on, how to schedule a corn job for executing a script or command or shell script at a particular time every day. As a system administrator, we know the importance of running the routine maintenance jobs in the background automatically. The Linux corn utility will help us to maintain these jobs to run in the background.General Syntax of a Cron JobMIN HOUR Day of month Month Day of Week Command 0-59 0-23 1-31 1-12 0-6 Any Linux command or scriptTo see a list of cron jobs which exists on the machine, run the below command ... Read More

How to Remove Empty Lines from a File on ubuntu

karthikeya Boyini
Updated on 20-Jan-2020 10:45:11

4K+ Views

Do you know how to remove empty lines from the file in Ubuntu? It may also be performed manually if the file has few strains but if the file has hundreds of thousands of line that is tough to be accomplished manually. This article explains you about – how to remove empty lines from a file on Ubuntu.Our sample file should be like this –Use the following command to remove the Empty lines from a file as shown below –$ ex -s +'v/\S/d' -cwq abc.txtIn the above command abc.txt indicates the file name. The sample output should be like this ... Read More

How to Install and Use Command Line Cheat Sheets on Ubuntu

Sharon Christine
Updated on 20-Jan-2020 10:42:56

265 Views

Cheat is a command line primarily based on Python software that lets in system administrators to view and save helpful cheat sheets. It retrieves simple-text examples of a delegated command which will remind the user of alternatives, arguments, or commonplace makes use of. Cheat is used for “commands which you use frequently, however now not frequently sufficient to consider”Installing CheatBefore installing Cheat, we need to make sure that everything’s up to date on the system as shown in the below command –$ sudo apt-get update && sudo apt-get upgradeInstalling Cheat is best done with the Python package manager Pip. To ... Read More

How To Install and Setup Sphinx on Ubuntu 16.04

Sharon Christine
Updated on 20-Jan-2020 10:27:28

319 Views

In this article, we will learn about how to install and setup Sphinx on Ubunt 16.04, Sphinx is an open source search engine which allows for full test searches, and is best in performing searches with a huge data very effectively where the data can be from any sources, (Ex − SQL Databases, plain text files, etc., )Features of the SphinxAdvanced indexes and good tool for querying.High Searching performance and indexes.Advances result for post-processing.Easily scalable with advanced searches.Can be integrated with SQL and XML sources.Can be scalable for handing the huge data with 1000’s of queries.PrerequisitesBefore we begin we needed ... Read More

Advertisements