Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| rdms:access:linux:icommands [2026/07/13 11:39] – burcu | rdms:access:linux:icommands [2026/07/13 11:55] (current) – burcu | ||
|---|---|---|---|
| Line 76: | Line 76: | ||
| ==== Switching Between Different Zones ==== | ==== Switching Between Different Zones ==== | ||
| - | If you have access to more than one iRODS zone, you can configure shell aliases to quickly switch between different iRODS environment files. | + | 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. | + | 1. Open your '' |
| 2. Add aliases similar to the following: | 2. Add aliases similar to the following: | ||
| - | ```bash | + | < |
| alias irods-rug=' | alias irods-rug=' | ||
| alias irods-sd=' | alias irods-sd=' | ||
| - | ``` | + | </ |
| 3. Save the file and reload your shell configuration: | 3. Save the file and reload your shell configuration: | ||
| - | ```bash | + | < |
| source ~/.bashrc | source ~/.bashrc | ||
| - | ``` | + | </ |
| 4. Select the iRODS zone you want to use: | 4. Select the iRODS zone you want to use: | ||
| - | ```bash | + | < |
| irods-rug | irods-rug | ||
| - | ``` | + | </ |
| or | or | ||
| - | ```bash | + | < |
| irods-sd | irods-sd | ||
| - | ``` | + | </ |
| 5. Initialize your iRODS session (if required): | 5. Initialize your iRODS session (if required): | ||
| - | ```bash | + | < |
| iinit | iinit | ||
| - | ``` | + | </ |
| 6. Verify that the correct environment is active: | 6. Verify that the correct environment is active: | ||
| - | ```bash | + | < |
| ienv | ienv | ||
| - | ``` | + | </ |
| - | + | The selected alias sets the '' | |
| - | 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 ===== | ||