• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

add

Add alias in csh

January 8, 2022

How to add an alias in csh. Edit .cshrc file. Add an alias.

alias hello ls -l

alias hello ls -l

Load.

source .cshrc

source .cshrc

Filed Under: Linux Tagged With: add, alias, csh

Add path to zsh

November 6, 2021

Here’s how to add a path to zsh permanently.

Edit .zshrc file and add the path. Create .zshrc file if it’s missing.

export PATH=$PATH:/new/path

export PATH=$PATH:/new/path

Exit and relaunch shell. The new path should be in effect.

Echo to display new path.

echo $PATH

echo $PATH

Filed Under: Linux Tagged With: .zshrc, add, path, zsh

Git Undo Add

October 13, 2021

To undo a git add, run git reset file or get reset.

git reset filename
git reset

git reset filename git reset

Run git status to check.

git status

git status

Filed Under: Linux Tagged With: add, git, reset, undo

Bash Aliases

July 17, 2021

Create an alias.

alias gcloud='docker run --rm -ti --volumes-from gcloud-config google/cloud-sdk:latest gcloud'

alias gcloud='docker run --rm -ti --volumes-from gcloud-config google/cloud-sdk:latest gcloud'

Remove an alias.

unalias gcloud

unalias gcloud

Filed Under: Linux Tagged With: add, alias, create, delete, remove

GCP Add New Route

March 2, 2021

Here’s how to add a new route in Google Cloud Platform.

gcloud compute routes create name-of-new-route \
  --destination-range=200.20.0.0/15 \
  --next-hop-gateway=default-internet-gateway \
  --project=host-project \
  --network="default" \
  --priority=900

gcloud compute routes create name-of-new-route \ --destination-range=200.20.0.0/15 \ --next-hop-gateway=default-internet-gateway \ --project=host-project \ --network="default" \ --priority=900

Filed Under: Cloud Tagged With: add, default, gateway, gcp, network, new, route

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Interim pages omitted …
  • Go to page 6
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023