click below
click below
Normal Size Small Size show me how
Powershell
Learning Powershell Commands
| Command | What is does |
|---|---|
| pwd | print working directory |
| hostname | my computer's network name |
| mkdir | make directory |
| cd | change directory |
| ls | list directory |
| rmdir | remove directory |
| push | push directory |
| popd | pop directory |
| cp | copy a file or directory |
| mv | move a file or directory |
| more | page through a file |
| type | print the whole file |
| robocopy | robust copy |
| forfiles | run a command on lots of files |
| dir -r | find files, dir -r -filter |
| select-string | find things inside files |
| help | read a manual page |
| helpctr | find what man page is appropriate |
| echo | prints some arguments |
| set | export/set a new environment variable |
| exit | exit the shell |
| runas | become super user root DANGER! |
| attrib | change permission modifiers |
| iCACLS | change ownership |
| $|$ | The | takes the output from the command on the left, and "pipes" it to the command on the right. |
| $>$ | The > takes the output of the command on the left, then writes it to the file on the right. |
| $>>$ | The >> takes the output of the command on the left, then appends it to the file on the right. |
| * | matches anything in a wildcard like *.txt |