Skip to content

SysTutorials

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

  • QA

    How to transfer text messages from android to computer?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to transfer text messages from android phone to computer? One solution is to use the SMS Backup & Restore app. The app will backup your messages to a microSD card and then you can copy it out to a PC by connecting your Android phone to your PC with the USB cable.

    Read More How to transfer text messages from android to computer?Continue

  • QA

    How to play video in full screen and keep it looping with MPlayer?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I would like to play a video file in full screen and automatically make it keep playing during an exhibition. On Linux, how to do it with MPlayer? You can use this command mplayer -fs -loop 0 video.mp4 Here, -fs make it fullscreen and -loop 0 makes it loop infinitely. For more usage of mplayer,…

    Read More How to play video in full screen and keep it looping with MPlayer?Continue

  • QA

    How to make journalctl faster?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    On Linux, I check system logs by journalctl. But it is soooo slow. How to make it faster. By default without any options, the journalctl is indeed very slow. But usually, we are only interested in some logs and can use options to specify the logs that we are interested to check. This will make…

    Read More How to make journalctl faster?Continue

  • QA

    How to sort lines by length in Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I have a text file with many lines of text. In Linux, how to sort the lines by their length? You can make use of awk together with the sort program like awk ‘{ print length(), $0 | “sort -n” }’ /path/to/text/file Here, we use awk to calculate the text length and sort -n to…

    Read More How to sort lines by length in Linux?Continue

  • QA

    How to remove trailing / in path in Bash?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I am writing a Bash script accepting input of a path from the user. I want to make the path have no trailing ‘/’, such as ‘/path/to/dir’ instead of ‘/path/to/dir/’. However, as the input is from the user, the input could be ‘/path/to/dir’. My script is intended to handle this. The question is: how to…

    Read More How to remove trailing / in path in Bash?Continue

  • QA

    ‘dd’ command cannot support calculation for its parameters

    ByWeiwei Jia Mar 24, 2018Jan 7, 2020

    $ dd if=/dev/zero of=./4Ktest100M bs=4KB count=25000*9 dd: invalid number `25000*9′ I think ‘dd’ should support calculation for its parameters like ‘bs’, ‘count’ and so on. You can get the effect by using some other tools/commands, like dd if=/dev/zero of=./4Ktest100M bs=4KB count=$((25000*9)) or dd if=/dev/zero of=./4Ktest100M bs=4KB count=$(bc <<< 25000*9) I think it makes sense. Thank…

    Read More ‘dd’ command cannot support calculation for its parametersContinue

  • QA

    How to do “contains string” test in Bash?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to test whether a string $str contains another string $needle in Bash? You can use this piece of Bash script: [[ “$str” == *”$needle”* ]] A usage example: $ str=”abcde hello” $ needle1=”deh” $ needle2=”de hello” $ [[ “$str” == *”$needle1″* ]] && echo “matched” $ [[ “$str” == *”$needle2″* ]] && echo “matched”…

    Read More How to do “contains string” test in Bash?Continue

  • QA

    How to get a script’s directory reliably in Bash on Linux?

    ByEric Ma Mar 24, 2018Oct 7, 2019

    How to get a script’s directory reliably in Bash on Linux? For example, to get the directory of the executing script $0. dirname can give you the directory name from the absolute path. You can get the absolute path of the script by readlink -f to handle symbolic links (consider a symbolic link ./run.sh linked…

    Read More How to get a script’s directory reliably in Bash on Linux?Continue

  • QA

    How to attach and mount Xen DomU’s disk partitions on Linux without Xen?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to attach and mount Xen DomU’s disk partitions on Linux without Xen? You can use kpartx to create devices from the VM disk image (say, ./vmdisk0). To activate all the partitions in a raw VM disk image: # kpartx -av ./vmdisk0 This will output lines such as: add map loop1p1 (253:8): 0 497664 linear…

    Read More How to attach and mount Xen DomU’s disk partitions on Linux without Xen?Continue

  • QA

    Why are keys overlap in SST files at Level 0 in LevelDB system?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    As is known, keys may be overlap in SST files of level 0 in LevelDB. I am wondering why it needs to be overlap? An sstable is read-only after being written to the disk from a memtable. Accumulated K/Vs in the log up to a certain size are organized as a memtable and written to…

    Read More Why are keys overlap in SST files at Level 0 in LevelDB system?Continue

  • QA

    How to add Google as the search engine in Firefox on Linux Mint?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    In Firefox on Linux Mint, Google is not in the list of search engines supported. How to add Google in Firefox on Linux Mint? Check this tutorials to add Google in Firefox on Linux Mint: How to Add Google to Firefox in Linux Mint as Default Search Engine

    Read More How to add Google as the search engine in Firefox on Linux Mint?Continue

  • QA

    Why does ; after & lead to unexpected token error in bash on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    The command using ‘;’ after ‘&’ like ssh host1 hostname &; ssh host2 hostname & Leads to error like bash: syntax error near unexpected token `;’ Why does ; after & lead to unexpected token error in bash on Linux? And what’s the solution? The fix The quick fix is to change your command to…

    Read More Why does ; after & lead to unexpected token error in bash on Linux?Continue

  • QA

    How to use the xargs argument twice in the command on Linux?

    ByEric Ma Mar 24, 2018Oct 27, 2019

    `xargs` passes the argument once to the utility command specified. For example, xargs cat will cat every line passed to xargs. But how to use the xargs argument twice in the command on Linux? For example, to rename file to file.bak where file is from the stdin. One solution is to write a small script like…

    Read More How to use the xargs argument twice in the command on Linux?Continue

  • QA

    How to extract images from PDF on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I have a PDF file that has some images in it. How to extract the images out (not snapshot/screenshot of the page areas) from PDF on Linux? 2 tools that I usually use for extracting and saving images from PDF files: pdfedit and libreoffice. You can open the PDF file by the tools, right click…

    Read More How to extract images from PDF on Linux?Continue

  • QA

    How to manually kill HDFS DataNodes?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    stop-dfs.sh report that there are no datanodes running on some nodes like hdfs-node-000208: no datanode to stop However, there are DataNode process running there. How to clean these processes on many (100s) of nodes? You may use this piece of bash script: for i in `cat hadoop/etc/hadoop/slaves`; do echo $i; ssh $i ‘jps | grep…

    Read More How to manually kill HDFS DataNodes?Continue

  • QA

    How to install Windows from USB drive?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I have downloaded the iso file of Windows 10 installation disk from https://www.microsoft.com/en-us/software-download/windows10ISO . But I do not have a DVD R/W drive. Whether and how to install Windows from a USB drive? You can use the Windows USB/DVD Download Tool to make a USB from the Windows ISO. Download and install the Windows USB/DVD…

    Read More How to install Windows from USB drive?Continue

  • QA

    Where to search and download free images?

    ByEric Ma Mar 24, 2018May 31, 2020

    Where to search and download some free and nice images to be used on my websites? The best one for searching the free images is still Google. Google Image Search has a “Advanced Image Search” where you can choose the usage rights. Choose the “free to use, share, or modify, even commercially” option will lead…

    Read More Where to search and download free images?Continue

  • QA

    Firefox: how to sync bookmarks saved on iOS devices to Firefox on PC?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    Firefox on iOS can view bookmarks from PC. But how to sync the bookmarks made on iOS to PC? It seems the bookmarks made in Firefox on iPhone is local only. No, you can’t yet. Bookmarks saved on your iOS devices will not sync to your PC at current (by Nov. 25, 2015) version of…

    Read More Firefox: how to sync bookmarks saved on iOS devices to Firefox on PC?Continue

  • QA

    iOS contacts searching does not work showing “No result”

    ByEric Ma Mar 24, 2018Oct 7, 2019

    After upgrading to iOS 9.1, my iPhone contacts searching does not work showing “No results”. How to fix it? The trick is to create a group in your contacts. However, you can not do it on your iPhone. But there is a method: Sync your iPhone contact with iCloud (so you will need to enable…

    Read More iOS contacts searching does not work showing “No result”Continue

  • QA

    How to watch a directory size in Linux Shell

    ByWeiwei Jia Mar 24, 2018Jan 7, 2020

    How (only) to show the size of the directory. LS command may show more trivial infos I don’t need. DU command can do it. DU is “du – estimate file space usage”. Users could use ‘–max-depth=N’ parameter to print the level of information. One example is as follows. $ du -h –max-depth=0 hummer-svn 11G hummer-svn

    Read More How to watch a directory size in Linux ShellContinue

Page navigation

Previous PagePrevious 1 … 20 21 22 23 24 … 70 Next PageNext

© 2026 SysTutorials

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