First download RAR rpm package:
$ wget http://pkgs.repoforge.org/rar/rar-3.8.0-1.el7.rf.x86_64.rpm 2014-10-31 18:51:15 (58.6 KB/s) - ‘rar-3.8.0-1.el7.rf.x86_64.rpm’ saved [216008/216008]
First download RAR rpm package:
$ wget http://pkgs.repoforge.org/rar/rar-3.8.0-1.el7.rf.x86_64.rpm 2014-10-31 18:51:15 (58.6 KB/s) - ‘rar-3.8.0-1.el7.rf.x86_64.rpm’ saved [216008/216008]
In this short config we will show a multiple options on how to remove a first line from a text file. Here is the content of our sample file.txt.
$ cat file.txt line1 line2 line3 line4
The php-mbstring
is part of Redhat’s server optional packages. If you have a current subscirption all you need to do is to enable this repository using:
[root@rhel7 ~]# subscription-manager repos --enable=rhel-7-server-optional-rpms
and use yum to install php-mbstring
. In case that you do not have a current Redhat subscription you can install php-mbstring
directly from IUS project repository:
[root@rhel7 ~]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/ius-release-1.0-13.ius.el7.noarch.rpm [root@rhel7 ~]# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm [root@rhel7 ~]# rpm -Uvh *release*.rpm
The tutorial will explain the basics behind SSH server and SSH client connections on Fedora Linux Workstation. By default the SSH server on Fedora Workstation may be installed but not enabled. This will cause a following error message when connecting via SSH client:
ssh: connect to host fedora-workstation port 22: Connection refused
In this tutorial you will learn:
In this artcile you will learn how calculate Fibonacci sequence with using C++ function. The Fibonacci sequence starts with 0 and 1 where the the following number is always a sum of the two preceding numbers. For example, 0,1,1,2,3,5,8 and so on.
In this tutorial you will learn:
The objective of this article is to provide the reader with an information on how to test microphone on Linux system.
In this tutorial you will learn:
In this tutorial, we explain how to mount USB drives in a Linux system using terminal and shell command line. This allows you to mount a USB drive of any file system, to some mount point on your system. If you are using desktop manager, you will most likely be able to use it to mount USB drive for you.
Every user, as well as administrator of the Linux system, very often need to execute some programs automatically on regular basis.
For example, an administrator may need to monitor a disk usage of a system. In this case, a cron scheduler is a very handy tool to achieve this goal.
Let’s say that the system administrator needs to execute /usr/local/sbin/backup.sh
script every Sunday
at 2:36AM
. In this case the administrator would edit his crontab
file as shown on the figure below:
$ sudo crontab -e
The format of Crontab entry is simple as it is divided into 7 fields separated by spaces or tabs. The 6th field, in this case, the username, can be omitted as it is only used by the system-wide crontab scheduler.
The following figure illustrates a single Crontab entry to allow automatic script execution every Sunday
at 2:36AM
:
Are you a beginner GNU/Linux user and wish to look beyond the usual window dragging and mouse clicking? This guide is intended for the absolute beginner users wishing to learn the basics of GNU/Linux command line. This tutorial intends to walk through basic Linux commands related to navigation, file and directory administration, software installation and basic system troubleshooting.
This article describes a simple way to create a home made debian package and include it into a local package repository. Although we could use an existing Debian/Ubuntu package, we will start from scratch by creating and packaging our own trivial application. Once our package is ready, we will include it into our local package repository. This article illustrates a very simplistic approach, however it may serve as a template in many different scenarios.
In this tutorial you will learn:
This article explains basic commands for navigation within Linux file system. The diagram below represents (part of) a Linux file system know as Filesystem Hierarchy Standard. A line from one node to a node on its right indicates containment. For example, the student directory is contained within the home directory.
In this tutorial you will learn:
pwd
commandcd
commandLogical Volume Manager (LVM) is used on Linux to manage hard drives and other storage devices. As the name implies, it can sort raw storage into logical volumes, making it easy to configure and use.
In this guide, you’ll learn how LVM works on Linux systems. There’s no better way to learn about LVM than simply running through an example, which is exactly what we’ll do in the steps below. LVM works the same on any Linux distribution, so you can use any of the commands below on your own system.
Follow along with us as we use LVM to create partitions, physical volumes, a virtual group, logical volumes, and filesystems on a hard disk. We’ll also show how to mount, extend, and remove our newly created logical volumes. By the end of this tutorial, you’ll have a full understanding of how to use LVM and apply your own configurations.
In this tutorial you will learn: