Similar Posts
- Linux | Network | Software | Storage systems | Tutorial
How to synchronize OneDrive and OneDrive for Business files in Linux using Insync
OneDrive is one of the good cloud storage services available and there is a business version called OneDrive for Business. Microsoft’s Office 365 plan is widely used including Exchange Email service and OneDrive for Business. However, there is no official client released yet for Linux users. Insync is a third party cloud storage syncing software…
How to make Emacs run in command line by default?
ByEric MaHow to make Emacs run in command line by default? I do not want to open the X window. You have at least 2 choices. First choice: use emacs-nox and make it the default: # yum install emacs-nox # alternatives –config emacs and choose emacs-nox. Second choice: use emacs but with -nw to disable the…
How to read email in Maildir on Linux?
ByEric MaHow to read email in Maildir on Linux? You can use mutt by: mutt -f /path/to/mail/dir/ Read more: How to convert A4 paper format to read on Kindle 5 What’s wrong with the messages like “UnrecovData 10B8B BadCRC” and “failed command: READ FPDMA QUEUED” on Linux? How to convert the dmesg timestamps to easier to…
How to get the script’s own path in sourced Bash script?
ByEric MaIn normal Bash script, $0 is the path to the script. However, when a script is sourced, such as . a.sh a.sh’s $0 does not give a.sh. How to get the a.sh inside a.sh? Short answer: use ${BASH_SOURCE[0]}. You can check this post for details and explanations: How to Get Bash Script’s Own Path. Read…
Add the jane street opam repository
ByQ AHow to add the jane street opam repository is introduced here. Here, we assume the branch to add is core-branch. You may need to replace the core-branch with the branch you need. $ git clone -b core-branch https://github.com/janestreet/opam-repository.git $ opam repo add js opam-repository Or, directly add the remote branch as an opam repository. $…
Trap Ctrl-C in a Bash script
ByQ AHow to trap Ctrl-C in a Bash script? The piece of code: # trap ctrl-c and call ctrl_c() trap ctrl_c INT function ctrl_c() { echo echo “Ctrl-C by user” # do the jobs exit } Read more: How to rearrange Alt, Ctrl and Win keys on Linux: Win as Alt and Ctrl/Alt as Ctrl How…