Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rdms:access:linux:icommands [2026/07/13 11:13] – [Configure iCommands] burcurdms:access:linux:icommands [2026/07/13 11:55] (current) burcu
Line 75: Line 75:
 **Note:**\\ The ''iinit'' command will not just initialize your connection to the RDMS, but will also store your password in an obfuscated format under ''~/.irods/.irodsA''. Therefore, you do not have to retype your password each time a subsequent command is executed during the same session. **Note:**\\ The ''iinit'' command will not just initialize your connection to the RDMS, but will also store your password in an obfuscated format under ''~/.irods/.irodsA''. Therefore, you do not have to retype your password each time a subsequent command is executed during the same session.
  
-==== Configure iCommands to Access Both Zones ====+==== Switching Between Different Zones ==== 
 +If you have access to more than one iRODS zone, such as the default zone and Sensitive Data (SD) zone, you can configure shell aliases to quickly switch between different iRODS environment files. 
 + 
 +1. Open your ''~/.bashrc'' file in a text editor. 
 + 
 +2. Add aliases similar to the following: 
 + 
 +<code> 
 +alias irods-rug='export IRODS_ENVIRONMENT_FILE="$HOME/.irods/irods_environment.json"; echo "Selected iRODS zone: RUG"' 
 +alias irods-sd='export IRODS_ENVIRONMENT_FILE="$HOME/.irods/irods_environment_sd.json"; echo "Selected iRODS zone: SD Zone"' 
 +</code> 
 + 
 +3. Save the file and reload your shell configuration: 
 + 
 +<code> 
 +source ~/.bashrc 
 +</code> 
 + 
 +4. Select the iRODS zone you want to use: 
 + 
 +<code> 
 +irods-rug 
 +</code> 
 + 
 +or 
 + 
 +<code> 
 +irods-sd 
 +</code> 
 + 
 +5. Initialize your iRODS session (if required): 
 + 
 +<code> 
 +iinit 
 +</code> 
 +6. Verify that the correct environment is active: 
 + 
 +<code> 
 +ienv 
 +</code> 
 +The selected alias sets the ''IRODS_ENVIRONMENT_FILE'' environment variable to the corresponding iRODS environment file. Any subsequent iCommands will use that environment until you switch to another one or open a new terminal session. 
 ===== Installing iCommands ===== ===== Installing iCommands =====