Question : Due to some reason, I had to stop a service on linux CentOS 7. But when i restarted the server, the service starts again automatically. How to stop or disabled auto start services at boot ?
Answer : Just issue the following command to disabled auto start for particular service.
In Linux, tar command is the primary utility to create compressed archive files and directories. “tar” stands for tape archive and it is actually archiving file format. The following example will show you how to creating an archive using tar command.
A, –catenate, –concatenate Append tar files to an archive.
c, –create Create a new archive.
d, –diff, –compare Calculate any differences between the archive and the file system.
–delete Delete from the archive. (This function doesn’t work on magnetic tapes).
r, –append Append files to the end of a tar archive.
t, –list List the contents of an archive.
–test-label Test the archive label, and exit.
u, –update Append files, but only those that are newer than the copy in the archive.
x, –extract, –get Extract files from an archive.
-z, –gzip, –gunzip This option tells tar to read or write archives through gzip, allowing tar to directly operate on several kinds of compressed archives transparently. This option should be used, for example, when operating on files with the extension.tar.gz.
-Z, –compress, –uncompress tar will use the compress program when operating on files.
Q. Linux system administrators who maintaining the servers that are exposed to the Internet should be the most concerned about this Shell Shock’ bash Vulnerability or attack. Most of the patches are now available from the vendors that should close this security hole. For those who still haven’t check your linux system, below are the recommended unofficial procedure in order to ensure you server are not vulnerable from Shellshock attack.
A. Follow the following procedure to secure you system.
2. Skip the next step if you command did not say vulnerable, meaning your bash is up to date.
If you see the return message below, kindly proceed to next steps.
Please take a look of below details from redhat article.
All versions prior to those listed as updates for this issue are vulnerable to some degree.
Red Hat performed an analysis to better understand the magnitude of this issue and how it affects various configurations. The below list is not exhaustive, but is meant to give some examples of how this issue affects certain configurations, and why the high level of complexity makes it impossible to specify something is not affected by this issue. The best course of action is to upgrade Bash to a fixed version.
Q. How to find the softlink on my linux VPS server.
I’m running a linux CentOS operating system, but i am not sure the linux kernel is 32 bit or 64 bit. How to determine that ?
-p, --processor          print the processor type or "unknown"
-i, --hardware-platform  print the hardware platform or "unknown"
Man pages are a common way to learn the commands that are on your system. The man command will give you all the details of a given command, including switches used, and syntax. man formats and displays the on-line manual pages. This post will show the quick steps to install man command on linux CentOS 5.7 server.
not specifying -M at all.  See SEARCH PATH FOR MANUAL PAGES.
able.  By default, man uses /usr/bin/less -is.
List is a colon separated list of  manual  sections  to  search.
ual pages that match name, not just the first.
-D     Both display and print debugging info.
-h     Print a help message and exit.
this is probably very slow!  It  helps  to  specify  a  section.
man, then "manpath" is equivalent to "man --path".
: introduced features like Python and Perl interpreters.
: need to install the vim-common package.
Note that you must be the root/administrator to install the package.
In this post, i will share the simple command to check the Hard Disk size and usage on CentOS 6.2. This command is a basic command for linux operating system.
df command will displays the total, used, and available free space on all currently mounted filesystems.
du command reports disk usage. It will shows the disk space used by the files and directories in a directory. The -h option makes the output easier to read by user.