Skip to content

SysTutorials

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

  • QA

    How to play .swf files on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to play the flash (.swf) files downloaded from the Web on Linux? The best solution that I find to play .swf files on Linux is run Adobe Flash Player Projector (download from here, a single .EXE file) and run it under wine.

    Read More How to play .swf files on Linux?Continue

  • QA

    How to convert between dos and unix file coding in Emacs?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to convert between dos and unix file coding for files in Emacs? From Dos to Unix coding: M-x set-buffer-file-coding-system RET undecided-unix or C-x RET f undecided-unix Then save the file (C-x C-s). From Unix to Dos M-x set-buffer-file-coding-system RET undecided-dos or C-x RET f undecided-dos Then save the file (C-x C-s).

    Read More How to convert between dos and unix file coding in Emacs?Continue

  • QA

    How to sort a file by hexadecimal numbers on Linux using sort command?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    The sort command has a -n option to sort a file by numbers. However, it does not work with hexadecimal numbers. For example, this file: 400000000 __crt0 400000039 __newr0 400001B14 get_my_task_id 400001C14 get_new_task_id 400001582 input_char 40000166E input_q 400001A5D input_q_exit 400002002 main 4000000DB output_char 400001134 output_char_str 40000100C output_id 40000018F output_q 400000614 output_q_digits 400000B7E output_q_hex 400000D3E output_q_hex_j1…

    Read More How to sort a file by hexadecimal numbers on Linux using sort command?Continue

  • QA

    How to print the name of the current file being edited in Emacs?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    In Emacs, how to print the name of the current file that I am editing? The built-in function buffer-file-name gives the full path of your file. To get the file name: M-: buffer-file-name

    Read More How to print the name of the current file being edited in Emacs?Continue

  • QA

    How to compress lists of consecutive citation numbers to one range in Latex?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to compress lists of consecutive citation numbers to one number range in Latex? For example, change [14], [15], [16], [17], [19] to [14-17], [19] That will save some space for the paper/document written in latex. The cite package is great from my experience. You just need to add usepackage{cite} in the document’s preamble and…

    Read More How to compress lists of consecutive citation numbers to one range in Latex?Continue

  • QA

    How to get the git commit tree?

    ByQ A Mar 24, 2018Oct 7, 2019

    How to get a tree-like view of the git commit history? My favorite command line: git log –graph –oneline It will prints a text based graph like (with colors): * b5dc8b9 Merge branch ‘master’ of https://github.com/layerzero/libi0 | | * 7514ef1 revised the README.md a little bit | * 6692428 align size to page for both…

    Read More How to get the git commit tree?Continue

  • QA

    How to exclude users from GDM login screen?

    ByEric Ma Mar 24, 2018Mar 30, 2026

    How to exclude users from appearing in the GDM login screen of Gnome 3? There is a long-time bug related to this ( https://bugzilla.redhat.com/show_bug.cgi?id=723708 ) which causes that the /etc/gdm/custom.conf has no effect. The closes workaround I find working on Fedora 41 is to totally disable listing of users (run as root): cat > /etc/dconf/db/gdm.d/01-mysettings…

    Read More How to exclude users from GDM login screen?Continue

  • QA

    How to flush a cached redirect by Chrome?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    Chrome caches redirects. How to flush a cached redirect by Chrome? Clearing the cache/cookies for the specific domain (sorry, it is the domain level in this solution) as in https://www.systutorials.com/qa/453/how-to-remove-cookies-for-a-certain-site-in-chrome will also flush the redirect caches for this domain.

    Read More How to flush a cached redirect by Chrome?Continue

  • QA

    How to fetch a webpage as a mobile browser with curl on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    On Linux, how to download a webpage as a mobile browser? You can change the agent of curl to be a mobile browser’s and the remote webserver may be consider the request from a mobile browser: curl -A “Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) CriOS/28.0.1500.12 Mobile/10B329 Safari/8536.25″…

    Read More How to fetch a webpage as a mobile browser with curl on Linux?Continue

  • QA

    How to allow pre tag in WordPress comments?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to allow pre tag in WordPress comments? You can add a filter hook for pre_comment_approved: <?php function filter_handler( $approved , $commentdata ) { // inspect $commentdata to determine approval, disapproval, or spam status return $approved; } add_filter( ‘pre_comment_approved’ , ‘filter_handler’ , ’99’, 2 ); ?> Reference: https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_comment_approved

    Read More How to allow pre tag in WordPress comments?Continue

  • QA

    How to disable the email notification by crond?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    crond sends email notifications automatically. However, these emails are not needed. How to disabled it? If your command does not anything printed to STDOUT or STDERR, there is not emails send. You can redirect 2 and 1 to /dev/null at the end of your command. You can also set the MAILTO variable to empty by…

    Read More How to disable the email notification by crond?Continue

  • QA

    Bash comparison operators

    ByEric Ma Mar 24, 2018Mar 24, 2018

    What are all the bash supported comparison operators? The man 1 test contains all the operators supported in bash. An omitted EXPRESSION defaults to false. Otherwise, EXPRESSION is true or false and sets exit status. It is one of: ( EXPRESSION ) EXPRESSION is true ! EXPRESSION EXPRESSION is false EXPRESSION1 -a EXPRESSION2 both EXPRESSION1…

    Read More Bash comparison operatorsContinue

  • QA

    Generating TAGS file for Emacs recursively?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to generating TAGS file for Emacs recursively? etags seems not support recursively generating TAGS file. I use ctags instead. It can also generate TAGS file for Emacs with the -e option: ctags -e -R . You can also use etags with find: find ./ -print | xargs etags But I prefer the ctags way.

    Read More Generating TAGS file for Emacs recursively?Continue

  • QA

    How to aggregate multiple RSS feeds to a single one?

    ByEric Ma Mar 24, 2018Jun 26, 2018

    How to aggregate multiple RSS feeds to a single one? If you want a program to construct a web service by your own, SimplePie may be a good choice. It is written in PHP. If you just want a tool to make work done, I suggest Yahoo Pipes which works really well for me. (Yahoo…

    Read More How to aggregate multiple RSS feeds to a single one?Continue

  • QA

    How to view DVI files on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to view the DVI files generated by latex on Linux? It seems evinece can not open it. After install the evince-dvi package, evince should be able to view dvi files: # yum install evince-dvi

    Read More How to view DVI files on Linux?Continue

  • QA

    How to find which files are opened by a Linux program?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to find which files are opened by a Linux program? For example, when I run cat ~/.bashrc, how to find out which files are opened by cat? You can achieve this by using strace if the program “open” files using system calls. For example, I run as this: strace -o /tmp/st cat ./.bashrc grep…

    Read More How to find which files are opened by a Linux program?Continue

  • QA

    How to generate reference of web pages in the IEEE citation format with bibtex?

    ByEric Ma Mar 24, 2018Jun 26, 2018

    How to generate reference of web pages in the IEEE citation format with bibtex? From the IEEE Citation Reference, the reference for web page is like this: WWW Basic Format: [1] J. K. Author. (year, month day). Title (edition) [Type of medium]. Available: http://www.(URL) Example: [1] J. Jones. (1991, May 10). Networks (2nd ed.) [Online]….

    Read More How to generate reference of web pages in the IEEE citation format with bibtex?Continue

  • QA

    How to set up the Java environment in Linux?

    ByEric Ma Mar 24, 2018Mar 30, 2026

    I am using Fedora 41. I installed the rpm from Oracle for the Oracle JDK. How to set up the environment so that the Java environment is Oracle JDK instead of the OpenJDK? The Oracle JDK is install to /usr/java/ directory. On my Fedora 41, it looks like this: $ ls /usr/java -l total 4…

    Read More How to set up the Java environment in Linux?Continue

  • QA

    Maximum size of S3 objects?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    What is the maximum size of objects that I can store on Amazon S3? Now (Apr. of 2014), the limitation is 4TB. Before, Dec. 2010, it was 5GB. Reference: http://aws.typepad.com/aws/2010/12/amazon-s3-object-size-limit.html But be aware that the 10,000 part limit still applies.

    Read More Maximum size of S3 objects?Continue

  • QA

    How to set the data replication factor of Hadoop HDFS?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to set the data replication factor of Hadoop HDFS in Hadoop 2 (YARN)? The default replication factor in HDFS is controlled by the dfs.replication property. The value is 3 by default. To change the replication factor, you can add a dfs.replication property settings in the hdfs-site.xml configuration file of Hadoop: <property> <name>dfs.replication</name> <value>1</value> <description>Replication…

    Read More How to set the data replication factor of Hadoop HDFS?Continue

Page navigation

Previous PagePrevious 1 … 35 36 37 38 39 … 70 Next PageNext

© 2026 SysTutorials

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