RSSAmplifier

devsurvival · May 6, 2020

Web Dev Bootcamp ∙ Learn Bash

0
Sign in to vote or save

devsurvival.com

What is Bash?

Bash is a command terminal where you can type in some command and your operating system will execute the command

Here is what a typical bash looks like bash

Common Bash Commands

ls

List all directories and files in a directory

ls

cd

Changing directories

cd myDirectoy
cd directory1/directory2/...

you can also navigate into multiple nested directories by typing a forward slash followed by the directory name

you can also go back one directory by typing cd ..

mkdir

Making new directories

mkdir myNewDirectory

touch

creating files

touch index.js

rm

removing files and directories

rm index.js
rm myDirectory

Note: you can only use rm myDirectory if the directory is empty.

To delete the directory including all files and sub directories inside of it use rm -rf myDirectory

More Information

there are a lot of commands, but these are the ones that you will probably used the most often

here is a good resource to learn more

What’s Next?

Learn git


Read the original on devsurvival.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.