/home/directory during a boot time and write a report to
disk-space-check.serviceand place it into
/etc/systemd/system/directory. You can find the example of such systemd startup script below:
[Unit] After=mysql.service [Service] ExecStart=/usr/local/bin/disk-space-check.sh [Install] WantedBy=default.targetRead more ...
# sudo apt-get update && sudo apt-get -y upgrade # sudo apt-get -y install nginx php7.0 php7.0-fpmWhen the installation is finished, the packages should all be in place, and actually running. To make sure that this is the case, you can check that both Nginx and the PHP-FPM services are running in Systemd.
# sudo systemctl status nginx # sudo systemctl status php7.0-fpmIf Systemd confirms that both services are running, the server should actually be up, and you should be able to see the default Nginx welcome page by navigating to
localhostin the browser.
# sudo apt-get install build-essential curl nodejsRead more ...
# apt-get install python3-setuptoolsThe above command will also install Python 3 on your system. Next, use
easy_install3to install alternative Python package installer
# easy_install3 pipRead more ...
SHIFTafter you start your computer until GRUB's menu appears:
$ sudo apt-get install nfs-kernel-headersOn Fedora
$ sudo yum install nfs-utils system-config-nfsRead more ...
By creating a Logical Volume snapshots you are able to freeze a current state of any of your logical volumes. This means that you can very easily create a backup and once needed rollback to a original logical volume state. This method is very similar to what you already know from using Virtualization software such as Virtualbox or VMware where you can simply take a snapshot of entire virtual machine and revert back in case something went wrong etc. Therefore, using LVM snapshots allows you to take a control of your system's logical volumes whether it is your personal laptop or server. This tutorial is self-contained as no previous experience with Logical Volume Manager is required.
In this article we will explain how to manually create and restore logical volume snapshots. Since we do not assume any previous experience with Logical Volume Manager we will start from a scratch using a dummy physical hard drive /dev/sdb with size of 1073 MB. Here are all steps in nutshell:
One of the essential reflexes every new Linux user must develop is the reflex to search for information when something's amiss. But despite the fact that we live in a connected world, with search engines, wikis and huge quantities of information at our fingertips, it's always good to have the info we need already installed on the system we're working on. This makes for easy and fast access, and also for higher availability, should we lack access to an Internet connection. Besides, one can't always trust what one finds on the Web, and the manual pages are available in a consistent form, ready to answer questions to the impatient. One of the design philosophies standing behind Unix, and by inheritance Linux as well, is that the system should be well documented. This is how man pages came into being. While all Unix-based OSs have man pages, there are differences between them, so what works on Linux might not work on Solaris, for example. There is an issue, though: the writing style of these pages is terse, minute, impatient to the newcomer, so you might want to read a manpage a few times until you get accustomed.Read more ...
Although you may think that you have learned to master Linux command line with bash shell, there are always some new tricks to learn to make your command line skills more efficient. This article will teach you a few more basic tricks on how to make your life with the Linux command line & bash more bearable and even enjoyable.
This section will mostly deal with bash shortcuts in combination with three bash history expansion characters "!", "^" and "#". Bash Command History Expansion character "!" indicates start of history expansion. The "^" is a substitution character to modify a previously run command. The last optional character is "#", which denotes the reminder of the line as a comment.
$ echo Bash Shortcuts
echo Bash Shortcuts
!! is probably the easiest and most popular bash shortcut, which simply shows and executes your last entered command.Read more ...