Useful tips for everyday
Does Git work with zsh? git-prompt.sh is compatible with both Bash and Zsh. Zsh is powerful enough that there are entire frameworks dedicated to making…
How to set a file to this drwxrwsrwx permission? This implicitly means chmod 0777, would apply rwxrwxrwx, and is significantly different from rwxrwsrwx. The permission…
Can you partition a drive already in use? Is there a way to safely partition it with my data still on it? Yes. You can…
How do I upload a file from Linux Terminal to Google Drive? Linux Download the command line tool. wget https://docs.google.com/uc? Change the downloaded file name…
How do you replace between strings in Java? Java String replace() Method Example 3 public class ReplaceExample3 { public static void main(String[] args) { String…
Is USB power always 5v? USB will power 5v constant. If your digitizer has unkonwn input voltage requirement, it is better to do more research…
How do I find my ssh host IP address? There’s no need to do that for scp , but you can use ssh ‘s debugging…
How do I change directory in a shell script? when you write “p” on the command line, it will change the directory. If you run…
How to extract the substring before aaa0 in AWK? Given a hostname in format of aaa0.bbb.ccc, I want to extract the first substring before .,…
How do I find keystrokes in Linux? If you’re at a shell prompt, you can press Ctrl – v then the key of interest to…