Skip to content

SysTutorials

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

  • QA

    How to print a plain text file to printers from a terminal in Linux

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to quickly print a plain text file to printers from a terminal in Linux? You can also use enscript: enscript – convert text files to PostScript, HTML, RTF, ANSI, and overstrikes https://www.systutorials.com/docs/linux/man/1-enscript/ enscript text-file The lp command can print a plain text file to a printer. My favorite command: cat text-file | lp -o…

    Read More How to print a plain text file to printers from a terminal in LinuxContinue

  • QA

    How to print out text with line numbers in Linux

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to print out a plain text file with line numbers in Linux? Use the nl command: nl text-file Find options in the nl manual.

    Read More How to print out text with line numbers in LinuxContinue

  • QA

    Alternatives to goto in bash

    ByEric Ma Mar 24, 2018Mar 24, 2018

    As we know: There is no goto statement support in bash. goto is useful for certain situations, especially for debugging. So, is there any alternative mechanisms to goto in bash? Robert Copeland gave an interesting hacking to this problem: http://bobcopeland.com/blog/2012/10/goto-in-bash/ The idea is like the self-modifying code. But the difference is to generate a piece…

    Read More Alternatives to goto in bashContinue

  • QA

    How to export and import message filters of Thunderbird

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I have several installation of Thunderbird under Linux to check/send emails using IMAP email servers. I use filters extensively to manage my emails. How to export and import message filters of Thunderbird so that I can synchronize the rules on several installations? About message filters in Thunderbird (More at http://kb.mozillazine.org/Filters_(Thunderbird)): Filters are account specific, there…

    Read More How to export and import message filters of ThunderbirdContinue

  • QA

    How to add a space between the line numbers and text content in Emacs?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I use Emacs in console. The linum-mode displays the line numbers just well. However, in the console, there is no space between the line numbers and the text content, which makes it a little messy some times. How to add a space between the line numbers and text content in Emacs? If you are using…

    Read More How to add a space between the line numbers and text content in Emacs?Continue

  • QA

    How to make xterm display Chinese characters?

    ByEric Ma Mar 24, 2018Nov 21, 2019

    How to make xterm display Chinese characters? It just displays some small rectangles for Chinese characters. First, the settings for some old X programs like xterm is in ~/.Xresources. And it takes effect after the X server restarts, or you can manually load the settings by xrdb -merge ~/.Xresources Second, the Chinese or similar fonts…

    Read More How to make xterm display Chinese characters?Continue

  • QA

    How to make Emacs start up faster?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I use Emacs in consoles and start Emacs frequently (like check a file, edit it, close it and loop). However, Emacs seems take some time to start up especially some modes/extensions are used. How to make Emacs start up faster? I summarize my solution at this post: Making Emacs Startup Faster. The key is to…

    Read More How to make Emacs start up faster?Continue

  • QA

    How to back up a complete IMAP account?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I have a large IMAP email account which contains many emails in a rich structure of directories. How to back up the whole IMAP account to my local computer? The requirements: Automatically downloading these files. There are many directories, and copying-pasting emails will take too much time. Keep the directory structures which are used to…

    Read More How to back up a complete IMAP account?Continue

  • QA

    How to set options for scala in sbt

    ByEric Ma Mar 24, 2018Mar 24, 2018

    In sbt, I found this message printed out by the scala compiler: [warn] there were 1 deprecation warning(s); re-run with -deprecation for details [warn] one warning found The question is, how to add options (-deprecation here) to the scala compiler in sbt? You can use this inside the sbt console: set scalacOptions += “-deprecation”

    Read More How to set options for scala in sbtContinue

  • QA

    How to change the default text editor on Linux

    ByEric Ma Mar 24, 2018Mar 24, 2018

    On Linux, a default editor is used for text editing such as crontab -e or git commit. How to change it to the editor of my own choice? The default editor is indicated by the EDITOR environment variable. You can set this environment variable to set the default editor. For example, set it to emacs…

    Read More How to change the default text editor on LinuxContinue

  • QA

    Directly SSH to hosts using internal IPs through the gateway

    ByEric Ma Mar 24, 2018Mar 24, 2018

    We have many hosts with internal IPs like 10.0.3.* behind a gateway, say gateway.example.org. The hosts with internal IP connect to the Internet through the gateway. How to directly SSH to hosts using internal IPs through the gateway? Here is the solution: Directly SSH to Hosts with LAN IPs Through the Gateway

    Read More Directly SSH to hosts using internal IPs through the gatewayContinue

  • QA

    How to `cut` a String Using a String as the Delimiter in Bash?

    ByEric Ma Mar 24, 2018Sep 25, 2020

    Is is possible to cut in Linux using a string as the delimiter? cut –delimiter=”delim” -f 1,3 cut reports: cut: the delimiter must be a single character The most closest solution that I find is using awk/gawk: awk -F ‘delim’ ‘{print $1; print $3}’ From the manual: -F fs –field-separator fs Use fs for the…

    Read More How to `cut` a String Using a String as the Delimiter in Bash?Continue

  • QA

    Programming language popularity indices?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    Any good programming language popularity indices? Those are interesting ones: TIOBE Indexhttp://www.tiobe.com/index.php/content/paperinfo/tpci/index.html The RedMonk Programming Language Rankings: January 2014 This ranking is published as blog posts. So no persistent homepage found yet. The January 2014 version is: http://redmonk.com/sogrady/2014/01/22/language-rankings-1-14/ Programming Language Popularityhttp://langpop.com/

    Read More Programming language popularity indices?Continue

  • QA

    How to efficiently take screenshot on Windows 7

    ByEric Ma Mar 24, 2018Oct 7, 2019

    I am tired of the non-efficient “Print Screen” -> Paste in Paint -> Save way. How to efficiently take screenshot on Windows 7? On Windows 7 and later ones, the “Snipping Tool” is handy. Press the “Win” key and input “snipping tool”. The tool will appear in the menu. You can select the whole window,…

    Read More How to efficiently take screenshot on Windows 7Continue

  • QA

    How to prevent roommates from hogging bandwidth

    ByEric Ma Mar 24, 2018Oct 7, 2019

    I share a ADSL modem via a Wifi router with several roommates. Sometimes, I find the network bandwidth left is too little. Suspiciously, some one is using BT, Thunder, eMule or other P2P tools. These tools can easily use up all the bandwidth and left little for others. How to prevent some roommates from hogging…

    Read More How to prevent roommates from hogging bandwidthContinue

  • QA

    How to install drivers for TL-WN725N v2 USB wireless adapter on Fedora 19

    ByEric Ma Mar 24, 2018Mar 30, 2026

    I had a TP-Link TL-WN725N v2 USB wireless adapter. But it seems the kernels in Fedora 41 have not yet included drivers for it. How to install drivers for TL-WN725N v2 on Fedora 41? The driver is under development. You can find the source here and in the drivers/staging in the Linux kernel. If you…

    Read More How to install drivers for TL-WN725N v2 USB wireless adapter on Fedora 19Continue

  • QA

    WordPress theme TwentyFourteen interfere with AddThis Welcome Bar

    ByEric Ma Mar 24, 2018Mar 24, 2018

    The AddThis welcome bar will make a empty gap on top of the WordPress webpage with the TwentyFourteen wordpress theme. Is there a fix for it? You will find AddThis will add this div to the webpage: <div class=”addthis_bar_placeholder” style=”height: 46px;”></div> which cause the problem. A little trick that works is to set that div’s…

    Read More WordPress theme TwentyFourteen interfere with AddThis Welcome BarContinue

  • QA

    Add via to the Tweet button of AddThis share

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I use the AddThis share buttons on my sites. How to add the via @fclosedotcom to the Tweet button of AddThis share so that the tweets automatically @ my twitter handle? Change <a class=”addthis_button_tweet”></a> to <a class=”addthis_button_tweet” tw_via=”fclosedotcom”></a> Try it on this page with the Tweet button.

    Read More Add via to the Tweet button of AddThis shareContinue

  • QA

    How to get a Makefile’s directory for including other Makefiles

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I experience this problem: I have a file common.mk that includes release.mk which in the same directory. common.mk is included by the top-level Makefile. common.mk and release.mk are shared by multiple projects and the top-level Makefile may stay in different directories with {common,release}.mk. Now, include in make use the pwd as base directory. So, simply…

    Read More How to get a Makefile’s directory for including other MakefilesContinue

  • QA

    How to concatenate multiple video file together on Linux

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I have multiple video files, say video1.avi, video2.avi and video3.avi. How to concatenate these multiple video file to a single file together on Linux? You can use mencoder to concatenate multiple video files to one file. For installing mencoder on Fedora, please check: http://www.systutorials.com/1493/mplayer-on-fedora/ For the question, the command is: mencoder -oac copy -ovc copy…

    Read More How to concatenate multiple video file together on LinuxContinue

Page navigation

Previous PagePrevious 1 … 38 39 40 41 42 … 70 Next PageNext

© 2026 SysTutorials

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