Home > Powershell > Powershell Alias

Powershell Alias

Power shell is object oriented .. all commands or cmdlets .. return or take objects as parameters ..

to make switch from unix or *NIX easier .. to powershell most of the command have corresponding aliases in PS ..

example :

1> CLS – to clear screen

2>  DIR — to give list files and folders at current path/directory

3> to get all alias type at the PS prompt

get-ALIAS orPS1_1

get-alias cmdlet_name (to get alias for particular cmdlet)

4> to create a temporary alias of yourself

EG: set-ALIAS np notepad

once you have created alias .. if you just type np .. at the PS prompt .. it will open up Notepad

Categories: Powershell
  1. No comments yet.
  1. April 1, 2013 at 3:58 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: