MacOS

From DikapediaV2
Jump to: navigation, search

Set Persistent $PATH


cat /etc/paths
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Users/ardikas/.toolbox/bin


How to combine split zip files (and extract them)


When you come across split files that end with sequential numbers (e.g. .001, .002, etc...), before you can use the file, you first need to join the split files together into a single, whole file. A split ZIP file could look like this, for instance:

691-5088-A.zip_.001
691-5088-A.zip_.002
691-5088-A.zip_.003
691-5088-A.zip_.004

To combine them:

cat 691-5088-A.zip_.* > 691-5088-A.zip

Then extract using Archive utility.


How to Deactivate Anaconda shell


That's the "base" environment from Anaconda or Miniconda. It means the Python environment from conda is enabled by default.

(base) ardikas-mbp:~ ardika$
(base) ardikas-mbp:~ ardika$ conda deactivate 
ardikas-mbp:~ ardika$ 


In other words:

# run this in an interactive shell
# enable environment called "base", the default env from conda
conda activate base

# deactivate an environment
conda deactivate

Ref: https://apple.stackexchange.com/questions/371727/how-do-i-remove-the-source-base-from-my-terminal

Alternatively, you can enable the base environment, which is the default behavior of conda, but don't modify your prompt. Run the following command in an interactive shell once.

conda config --set changeps1 false