This config wil examplain how to add new ISO image store on XenServer Linux.
Access XenServer via SSH
First step is to gain an administrative access to your XenServer via ssh.
[root@xenserver ~]#
This config wil examplain how to add new ISO image store on XenServer Linux.
First step is to gain an administrative access to your XenServer via ssh.
[root@xenserver ~]#
The following guide can be used to reset an administrative root password on XenServer 7 Linux.
In the first step, reboot your XenServer into Grub boot menu:
This guide will provide you with an information on how to reset lost root ( administrator ) password on Ubuntu 16.04. This guide assumes that you have the actual physical access to your Ubuntu 16.04 Linux box.
In the first step you need to reboot your Ubuntu 16.04 Linux box to Grub’s menu. If the Ubuntu 16.04 is the only installation available keep pressing SHIFT
after you start your computer until GRUB’s menu appears:
The purpose of this tutorial is to show how to check the CentOS version of your Linux system. It’s possible to do this from either command line or GUI, so you can use whichever method is more convenient for you. Classic CentOS is nearing its end of life and will be replaced by CentOS Stream. Knowing your CentOS version will give you some insight into how long your system will continue to be supported.
Here is a quick tip to add an official Debian CD disk to your /etc/apt/sources.list
file to reduce package download requirement. Make sure that your CD is inserted to your CD-ROM drive and enter command:
# apt-cdrom add
When setting up FTP server on Redhat 7 Linux box the following error message ftp: connect: No route to host
may pop-up during FTP client session:
In the following example we are going to show how to remove columns from CSV file based on the column number. Consider a following linux command separated file containing 10 columns:
$ cat temp.csv 1,2,3,4,5,6,7,8,9,10 1,2,3,4,5,6,7,8,9,10 1,2,3,4,5,6,7,8,9,10 1,2,3,4,5,6,7,8,9,10 1,2,3,4,5,6,7,8,9,10 1,2,3,4,5,6,7,8,9,10 1,2,3,4,5,6,7,8,9,10
Here is a simple example on how to search a file and instead of printing a matching string to STOUT we only print a line number for a matching string. For an example consider a following file:
$ nl test.txt 1 linux 2 bash 3 shell 4 power 5 linux 6 shell 7 command 8 GNU
In order to extract a specific file from gzip compressed archive tarball you first need to know the full path to this file. Consider a following example.
$ tar tzf to-gzip.tar.gz to-gzip/ to-gzip/file10.txt to-gzip/file9.txt to-gzip/file8.txt to-gzip/file7.txt to-gzip/file6.txt to-gzip/file5.txt to-gzip/file4.txt to-gzip/file3.txt to-gzip/file2.txt to-gzip/file1.txt
Archives compressed with gzip have the .tar.gz
or .tgz
file extension. It’s easy enough to extract the contents from these files, but what if you only need a certain file? There’s not much sense in extracting hundreds or thousands of files from an archive if you’re only looking for a few files.
Fortunately, we can utilize the Linux command line and even GUI archive managers to search the contents of gzip compressed archives. Once we identify the file we want, it’s possible to extract the file by itself, rather than extracting every single file.
In this guide, we’ll show how to search one or multiple gzip archives for a particular file from both command line and GUI.
In this tutorial you will learn:
Here is a quick config tip on how to compress and extract files using RAR archive utility. First let’s see how we can compress directory using RAR. In our example we have a directory called my_files containing five files:
$ mkdir my_files $ touch my_files/file{1..5} $ ls my_files/ file1 file2 file3 file4 file5
To compress entire directory using RAR archive tool we use rar’s a
command. The below command will create a RAR archive called my_files.rar containing all five above files:
$ rar a my_files.rar my_files/ Creating archive my_files.rar Adding my_files/file5 OK Adding my_files/file4 OK Adding my_files/file3 OK Adding my_files/file2 OK Adding my_files/file1 OK Done $ ls -l my_files.rar -rw-rw-r--. 1 lrendek lrendek 307 Nov 3 06:55 my_files.rar
Here is a nice trick on how to create a dummy character text file consisting of any chosen or random characters. In the first example we will create and simple file consisting of a single character X with a size of 1000 bytes:
$ < /dev/urandom tr -dc "X" | head -c1000 > file.txt SAMPLE: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
or we can create a file consisting of an alphabetic and numeric character:
$ < /dev/urandom tr -dc "[:alnum:]" | head -c1000 > file.txt SAMPLE: CCjeuAhJNc4yxBfeMbbYX1U1TnSCVS5oiV53MtGoA6s45FAw9H9PyfZJHrA421