Skip to content

SysTutorials

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

  • QA

    Get error message on usb2 stick – READ ONLY FILE SYSTEM. What should i do?

    ByEric Ma Mar 24, 2018Oct 1, 2020

    Cant read or write to files on usb stick or move or copy them. Could you provide the dmesg output? It will help to understand your question. If it is formated on Windows, you may need to install the ntfs-3g package to write to the usb disk.

    Read More Get error message on usb2 stick – READ ONLY FILE SYSTEM. What should i do?Continue

  • QA

    How to check the DNS I am using on Linux?

    ByEric Ma Mar 24, 2018Mar 30, 2026

    My Linux distro is Linux Mint 17 (Ubuntu 24.04 LTS.1 LTS (Trusty Tahr)). I am using NetworkManager. The old trick does not work: $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 If you are…

    Read More How to check the DNS I am using on Linux?Continue

  • QA

    What are the DDL and DML of Shark (Spark SQL)?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    Currently, I wanna take Shark’s (Spark SQL) DDL and DML as an reference to design/implement SQLE’s DDL and DML. However, I cannot find its DDL and DML. I can only find several SQLs in Shark paper[1]. [1] shark paper – http://tab.d-thinker.org/showthread.php?tid=2585 Shark’s language is Hive QL. HQL’s DDL and DML can be found at Hive…

    Read More What are the DDL and DML of Shark (Spark SQL)?Continue

  • QA

    Making `fdisk -l` display partition sizes by GB/MB

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to make fdisk -l display partition sizes by bytes instead of sectors? fdisk does not have such options as far as I know. However, good news is that you can use parted: # parted -l It will print partition info like # parted -l Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/fedora_vm235-swap: 2164MB Sector size…

    Read More Making `fdisk -l` display partition sizes by GB/MBContinue

  • QA

    What are the differences between database DDL and DML

    ByWeiwei Jia Mar 24, 2018Jan 7, 2020

    Differences beween DDL (Data Definition Language) and DML (Data Manipulation Language) Data Definition Language (DDL) statements are used to define the database structure or schema. Data Manipulation Language (DML) statements are used for managing data within schema objects. References:http://www.orafaq.com/faq/what_are_the_difference_between_ddl_dml_and_dcl_commands

    Read More What are the differences between database DDL and DMLContinue

  • QA

    Which are sequence points in C?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    What are sequence points in C? The comp.lang.c FAQ explains this quite well. A sequence point is a point in time at which the dust has settled and all side effects which have been seen so far are guaranteed to be complete. The sequence points listed in the C standard are: at the end of…

    Read More Which are sequence points in C?Continue

  • QA

    How to disable auto mounting on Linux Mint Cinnamon?

    ByEric Ma Mar 24, 2018Oct 7, 2019

    I prefer Linux Mint (I am using Cinnamon) not automatically mounting a portable storage such as USB disk or iPhone for me and I would like do the mounting manually if I need it. The default behavior of Linux Mint is to automatically mount the disks. How to disable this? The auto mounting on Linux…

    Read More How to disable auto mounting on Linux Mint Cinnamon?Continue

  • QA

    How to change the commit message of a commit in the history (not HEAD)?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    A commit is not the HEAD now. and git commit –amend will not work for it. How to change its commit message? You can use git rebase together with git commit –amend as follows. Assume your commit to be edited is 2b8ed. $ git rebase -i 2b8ed^ Change the pick to edit in the line…

    Read More How to change the commit message of a commit in the history (not HEAD)?Continue

  • QA

    How to dynamically attach a disk to running DomU in Xen?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I want to attach a disk to a DomU. The Xen DomU is running and should not be rebooted. Hence, changing its configuration file is not an option. How to dynamically attach a disk to running DomU in Xen? To attach phy:vg_xen/vm-228-large to vm-228 as xvdb, run this on Dom0: # xl block-attach vm-228 phy:vg_xen/vm-228-large…

    Read More How to dynamically attach a disk to running DomU in Xen?Continue

  • QA

    What is database schema?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    As is known, database schema is a collection of database rules like data type and data relationship. However, this is still a little abstract. So what is database schema in one sentence everyone could understand it clearly. The wikipedia page on Database schema is quite good for understanding the concept. A database schema of a…

    Read More What is database schema?Continue

  • QA

    How to remove AdSense ads for mobile devices while keep them for desktops?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I want to add adsense ads to be shown to visitors on desktop only. How to remove AdSense ads for mobile devices? You can achieve this through using “Responsive ad unit” of AdSense. The support article Create a responsive ad unit from AdSense discusses this and gives an example. Check the “Hiding an ad unit”…

    Read More How to remove AdSense ads for mobile devices while keep them for desktops?Continue

  • QA

    How to create a git branch on remote git server

    ByWeiwei Jia Mar 24, 2018Jan 7, 2020

    We may need to maintain a dev-name branch on git remote server to share your codes. How to create the branch? 1, git checkout -b your_branch_name 2, Do your changes, add commit 3, git push origin your_branch_name References:http://stackoverflow.com/questions/1519006/how-do-you-create-a-remote-git-branch

    Read More How to create a git branch on remote git serverContinue

  • QA

    How to make taglist recognize specific files with certain extensions as C source files?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to make taglist recognize specific files with certain extensions as C source files? You may try adding this line to your ~/.vimrc: autocmd BufRead,BufNewFile *.c0 set filetype=c Reference: https://stackoverflow.com/questions/9013263/vim-tagslist-plugin-not-detecting-custom-language-racket

    Read More How to make taglist recognize specific files with certain extensions as C source files?Continue

  • QA

    How to make ctags recognize specific files with certain extensions as C source files?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    How to make ctags recognize specific files with certain extensions such as .c0 or .puc as C source files? You may add this line to your ~/.ctags: –langmap=c:+.c0,c:+.puc

    Read More How to make ctags recognize specific files with certain extensions as C source files?Continue

  • QA

    How to kick off a user on a Linux box?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    I want to kick off a user such as “bob” on a Linux box which I managed remotely. How to do this? bob may log on the Linux box by various ways: Log on the screen on the Linux box (locally) with a X server. Log on remotely by a ssh shell. Log on by…

    Read More How to kick off a user on a Linux box?Continue

  • QA

    Simple and Basic Image Editor in Linux

    ByEric Ma Mar 24, 2018Sep 26, 2021

    Which simple and basic image editors are good on Linux like the paint program on Windows? GIMP is great but too high weighted for normal usage like resizing, cropping, image annotation with text. Pinta is a free and open source drawing/editing program that is easy to edit images. It is available on many Linux distros….

    Read More Simple and Basic Image Editor in LinuxContinue

  • QA

    How to force iPhone to reboot/restart/reset?

    ByEric Ma Mar 24, 2018Jun 28, 2018

    How can I force iPhone to reboot/restart/reset when it locks up completely and does not response? To force an iPhone to restart: Press and hold the iPhone’s power key and home button together. Holding the two keys for around 10~15 seconds until the screen is turned off. Release the buttons once the screen lights up…

    Read More How to force iPhone to reboot/restart/reset?Continue

  • QA

    How to resize a batch of images on Linux?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    Resizing images on Linux with gThumb is easy. However, I have a batch of images inside a folder. Manually resizing them will consume too much time. How to automatically resize them on Linux with a script? You can use convert from ImageMagick together with bash script to resize images inside a directory. mkdir resize; IFS=$(echo…

    Read More How to resize a batch of images on Linux?Continue

  • QA

    How to add a new HDFS NameNode metadata directory to an existing cluster?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    We have a running HDFS cluster. Currently, the NameNode metadata data directory has only one directory configured in hdfs-site.xml: <property> <name>dfs.namenode.name.dir</name> <value>file:///home/hadoop/hdfs/</value> <description>NameNode directory for namespace and transaction logs storage.</description> </property> We would like to add a new directory for dfs.namenode.name.dir to make replicas of the metadata on a separated disk for higher data reliability….

    Read More How to add a new HDFS NameNode metadata directory to an existing cluster?Continue

  • QA

    How to suppress “Entering/Leaving…” messages when invoking make recursively?

    ByEric Ma Mar 24, 2018Mar 24, 2018

    The “Entering/Leaving…” messages when invoking another make by a make is kind of annoying. Is it possible to suppress these messages and how to suppress them? For GNU make, it is controlled by options: -w, –print-directory Print a message containing the working directory before and after other processing. This may be useful for tracking down…

    Read More How to suppress “Entering/Leaving…” messages when invoking make recursively?Continue

Page navigation

Previous PagePrevious 1 … 29 30 31 32 33 … 70 Next PageNext

© 2026 SysTutorials

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