Skip to content

SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search
SysTutorials

  • QA

    How to pause and resume the execution of a process on Linux?

    ByEric Ma Mar 24, 2018Nov 21, 2019

    How to pause the execution of a process on Linux so that the CPU can be freed? Later, if the node is idle again, how to resume the execution? There are 2 signals related to stopping (pausing) and continuing (resuming) processes: Stop Default action is to stop the process. Cont Default action is to continue…

    Read More How to pause and resume the execution of a process on Linux?Continue

  • QA

    How to get the full request URL in PHP?

    ByEric Ma Mar 24, 2018Nov 21, 2019

    How to get the full request URL of the page being processed in PHP? If you are sure the request is a http or https one, and the PHP script is executed according to (e.g. by a load balancer or apache reverse proxy) the REQUEST_URI/HTTP_HOST which are set by the client, the PHP script can…

    Read More How to get the full request URL in PHP?Continue

  • QA

    How to upgrade vim to version 8 on CentOS 7?

    ByEric Ma Mar 24, 2018Mar 30, 2026

    vim on Rocky Linux 9 is version 7.4 with patches 1-160: $ vim –version VIM – Vi IMproved 7.4 (2013 Aug 10, compiled Dec 21 2016 17:00:20) Included patches: 1-160 How to upgrade it to version 8 which is the latest major version? Update on Oct 23 2018: the repository introduced in the original method…

    Read More How to upgrade vim to version 8 on CentOS 7?Continue

  • QA

    How to find out all files with replication factor 1 in HDFS?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to find out all files with replication factor 1 in HDFS? The hdfs dfsadmin -report shows there are blocks with replication factor 1: Missing blocks (with replication factor 1): 7 How to find them out? You can run hdfs fsck to list all files with their replication counts and grep those with replication factor…

    Read More How to find out all files with replication factor 1 in HDFS?Continue

  • QA

    How to disable PHP short open tags?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    Some of my pages has XML tags like ‘<?xml ?>’ which are considered by PHP as short open tags ‘<? ?>’. How to disable PHP short open tags? In PHP, to disable the short open tags, you can set the variable short_open_tags = FALSE; in your php.ini. Reference: short_open_tags in php.ini

    Read More How to disable PHP short open tags?Continue

  • QA

    How to print all fields after a certain field with awk on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to print all fields after a certain field with awk on Linux? Say, I want to print out all fields after field $3: a b c d e f a b b b a a c d should be transformed to d e f b d You may use a for loop in awk…

    Read More How to print all fields after a certain field with awk on Linux?Continue

  • Tutorial

    How to change the maximum uploading size for PHP with Apache on Linux?

    ByQ A Mar 24, 2018Mar 30, 2026

    How to change the maximum uploading size for PHP with Apache on Linux? PHP has parameters to control the maximum uploading size. Here, we use Ubuntu 24.04 LTS default version as an example. First, open the php.ini configuration file using your favorite editor /etc/php/7.2/apache2/php.ini Then, find the following parts ; Maximum size of POST data…

    Read More How to change the maximum uploading size for PHP with Apache on Linux?Continue

  • Tutorial

    How to send a POST request in Go?

    ByQ A Mar 24, 2018Aug 7, 2020

    How to send a POST request in Go? For example, send a POST of content like ‘id=8’ to a URL like https://example.com/api. In Go, the http package provides many common functions for GET/POST. Related to POST requests, the package provides 2 APIs: Post Post issues a POST to the specified URL. func (c *Client) Post(url,…

    Read More How to send a POST request in Go?Continue

  • QA

    How to add a prefix string at the beginning of each line in Bash shell script on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to add a prefix string at the beginning of each line in Bash shell script on Linux? For example, assume we have a file a.txt: line 1 line 2 I want to have, pre line 1 pre line 2 You may use sed, the stream editor for filtering and transforming text: sed -e ‘s/^/pre…

    Read More How to add a prefix string at the beginning of each line in Bash shell script on Linux?Continue

  • QA

    How to get the highest temperature from all sensors in a server on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    It is useful to monitor a server node’s temporary. Among all the sensors’ temperatures, the higher one may be a very important one. How to get the highest temperature from all sensors in a server on Linux? You can use this command to get the the highest temperature from all sensors in a server on…

    Read More How to get the highest temperature from all sensors in a server on Linux?Continue

  • QA

    How to make CentOS Linux to load a module automatically at boot time?

    ByEric Ma Mar 24, 2018Mar 30, 2026

    How to make CentOS Linux to load a module, say ixgbe, automatically at boot time? I am using Rocky Linux 9. You can create a text file <some name>.conf in the /etc/modules-load.d/ and list the modules to be loaded there, one per line. The systemd-modules-load.service daemon will read these files and load the modules. Check…

    Read More How to make CentOS Linux to load a module automatically at boot time?Continue

  • QA

    How to detect whether a file is being written by any other process in Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to detect whether a file is being written by any other process in Linux? Before a program open a file to processes it, it wants to ensure no other processes are writing to it. Here, we are sure after the files are written and closed, they will not be written any more. Hence, one-time…

    Read More How to detect whether a file is being written by any other process in Linux?Continue

  • QA

    How to count the number of reads in each chromosome in a bam file?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to count the number of reads in each chromosome in a bam file? The bam file is already sorted by the chromosome names. If the bam file is indexed, you may quickly get these info from the index: samtools idxstats in.bam | awk ‘{print $1″ “$3}’ If the bam file is not indexed, you…

    Read More How to count the number of reads in each chromosome in a bam file?Continue

  • QA

    WPS’ wpp program reports “libbz2.so.1.0: cannot open shared object file” on CentOS 7

    ByEric Ma Mar 24, 2018Mar 30, 2026

    WPS’ wpp program reports “libbz2.so.1.0: cannot open shared object file” on Rocky Linux 9 as follows: $ wpp /opt/kingsoft/wps-office/office6/wpp: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory The reason: wpp will tries to dynamically link ‘libbz2.so.1.0’ $ ldd /opt/kingsoft/wps-office/office6/wpp | grep libbz2 libbz2.so.1.0 => not found libbz2.so.1…

    Read More WPS’ wpp program reports “libbz2.so.1.0: cannot open shared object file” on CentOS 7Continue

  • QA

    How to write a SQL to replace strings in a column in a MySQL database table?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to replace strings in a column in a MySQL database table? For example, I would like to replace http://www.systutorials.com with https://www.systutorials.com in a content column of a table post. You may use a SQL statement as follows. update post set content = replace(content, ‘http://www.systutorials.com’, ‘https://www.systutorials.com’) where content like ‘%http://www.systutorials.com%’

    Read More How to write a SQL to replace strings in a column in a MySQL database table?Continue

  • Web

    What are the best academic citation tool

    ByQ A Mar 24, 2018Aug 7, 2020

    What is the best academic citation tool does anyone help? Here, we list 2 choices that are open source, or free, or have free plans. Zotero Zotero is open source and developed by an independent, nonprofit organization. Zotero can help you collect, organize, cite, and share research. Zotero can automatically senses research on the web….

    Read More What are the best academic citation toolContinue

  • QA | Tutorial

    How to use encfs on Windows 10?

    ByQ A Mar 24, 2018Nov 22, 2019

    I am happy using encfs on Linux. But how to use encfs on Windows 10? I would suggest EncFS MP. It support Encfs on Windows. Features of EncFSMP: Mounts EncFS folders on Windows and OS X Can create, edit, export and change the password of EncFS folders Is 100% compatible with EncFS 1.7.4 on Linux…

    Read More How to use encfs on Windows 10?Continue

  • QA

    How to use encfs in Android?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    Is encfs available in an Android phone? You may try Encdroid a piece of free software released under the GNU General Public License. It is an Android application. It can access EncFS volumes on cloud storage or internal/USB storage devices. Google Play Store Link: https://play.google.com/store/apps/details?id=org.mrpdaemon.android.encdroid&hl=en Source code: https://github.com/mrpdaemon/encdroid

    Read More How to use encfs in Android?Continue

  • Tutorial

    Killing Running Bash Script Process Itself and All Child Processes In Linux

    ByDavid Yang Mar 24, 2018Aug 14, 2021

    In Linux, how to kill a process and all its child processes? For example, a Bash script A starts B, B starts C and C calls rsync. I would like to kill A and all its child processes all together. How to do this? There are possibly many answers to this question. One of the…

    Read More Killing Running Bash Script Process Itself and All Child Processes In LinuxContinue

  • QA

    How to split a gzip file to several small ones on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I have a very large (e.g. 100GB) .gz file and would like to split it into smaller files like 8GB/each for storage/copying. How to split a gzip file to several small ones on Linux? You may use the tool split to split a file by sizes. An example to split a large.tgz to at most…

    Read More How to split a gzip file to several small ones on Linux?Continue

Page navigation

Previous PagePrevious 1 … 11 12 13 14 15 … 70 Next PageNext

© 2026 SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search