Linux Terminal Commands

These are some useful Linux Terminal Commands for productivity: Commands using ls etc. use to ls -ltr list files in reverse modification history order with details. `ls -ltr tail -n 5` `ls head -n 5` rename 's/original/new/' * To rename all filenames and directories containing “original” string to “new” string. To recursively do this in sub-directories, use **/*. See: here and here for dir in */; do mkdir -- "$dir"/{tmp1,foo,bar,qux}; done To create directories within sub-directories in one go!...

 May 9, 2021  •   1 min  •   162 words  •   Suyog Garg

Issues with Zotero and working them out!

A log of Zotero issues, I have encountered. Date: 2025/03/18 Issue: Zotero freezes, items don’t load and the application doesn’t respond. Reason: Possibly due to adding too many feeds and the syncing issue. Date: 2025/03/18 Issue: Zootmoov didn’t sync recent files. Solution: Select affected files, right click$ \rightarrow$ Move them to directory with Zootmoov

 March 18, 2025  •   1 min  •   54 words  •   Suyog Garg

Accessing Remote Computing Clusters using Open-SSH

General guidelines You basically have three entities you want to interlink and provide bidirectional access. Personal computer Remote computer Github or Gitlab a/c server A copy of all my ssh keys is stored in ~/Dropbox/ssh-access-keys/ Known issues If the internet connection is not stable, the connection may be terminated abruptly, with an error message like: Read from remote host ldas-pcdev12.ligo.caltech.edu: No route to host Connection to ldas-pcdev12.ligo.caltech.edu closed. client_loop: send disconnect: Broken pipe Accessing LIGO Data Grid (LDG) CIT Cluster To use ssh to push to github repo, you still have to provide in the username and password for your @git....

 March 18, 2025  •   1 min  •   155 words  •   Suyog Garg

Access VS Code via the Terminal

To access and open VS Code directly from your terminal, do the following: Open your Bash or zsh profile. open ~/.zshrc Add path to the VS Code application to your PATHS variable. # Add Visual Studio Code (code) export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" Reload your updated terminal profile. source ~/.zshrc You can now open VS code by running code xxx from anywhere in your computer. References: https://code.visualstudio.com/docs/setup/mac

 March 17, 2025  •   1 min  •   66 words  •   Suyog Garg

Customize Linux Terminal!

 March 14, 2025  •   0 min  •   0 words  •   Suyog Garg