click below
click below
Normal Size Small Size show me how
CLI Commands
Windows, Linux and MAC bacic command line commands
| Question | Answer | |
|---|---|---|
| Computers Network Name | hostname | |
| Make Directory | mkdir | |
| Change Directory | cd | |
| List Directory | ls | |
| Remove Directory | rmdir | |
| Push Directory | pushd | |
| Pop Directory | popd | |
| Copy Directory | cp | |
| Robust Copy (Windows Only) | robocopy | |
| Move file or Directory | mv | |
| Page Through a File (Linux/Mac) | less | |
| Page Through A File (Windows) | more | |
| Print The Whole File (Linux/Mac) | cat | |
| Print The Whole File (Windows) | type | |
| Exit the Shell | exit | |
| Print Some Arguments | echo | |
| Execute Arguments (Linux/Mac) | xargs | |
| Find Files (Linux/Mac) | find | |
| Find Things Inside Files (Linux/Mac) | grep | |
| Read Manual Page (Linux/Mac) | man | |
| Find What Manual Page is Appropriate (Linux/Mac) | apropos | |
| Look at your Environment (Linux/Mac) | env | |
| Export/Set new Environment Variable (Linux/Mac) | export | |
| Superuser (Linux/Mac) | sudo | |
| Change permission Modifiers (Linux/Mac) | chmod | |
| Change Ownership (Linux/Mac) | chown | |
| Run a command on Lots of files (Windows) | forfiles | |
| Find Files (Windows) | dir -r | |
| Find things inside of Files (Windows) | select-string | |
| Read a Manual Page (Windows) | help | |
| Find what page is appropriate (Windows) | helpctr | |
| Export/Set a new environment variable (Windows) | set | |
| Become Super User / Admin (Windows) | runas | |
| Change Permission Modifiers (Windows) | attrib | |
| Change Ownership (Windows) | iCACLS | |
| Print Working Directory | pwd |