DEV Community

flaneuroffc
flaneuroffc

Posted on

terminal commands

  1. Change Directory

Command: cd (..)

What it does: This command will change the directory that you’re currently working with in the Terminal in order to execute other commands on a different directory, view the contents of a different directory or open a file in a different directory.

  1. Listing Directory

Command: ls (-a)

What it does: Use this command after navigating into a directory using the cd command to view the contents (files and directories) inside of the current directory. Use the argument -l (ls -l) to get even more information about each of the files, including the permissions, owner and date created.

  1. Create a directory

Command: mkdir

What it does: This command will allow you to create a directory (folder) right from the CLI. When you need a place to store new files, just use this command to add a new directory in the current working directory, or specify a full path to the location where you want the new directory to be placed.

  1. Clear the Terminal screen of all previous commands

Command: Clear

What it does: It removes all previously typed commands from the Terminal view and gives you back a clean slate to work from. Instead of typing clear, you can also alternatively press Command+K to perform the same action.

  1. pwd
  2. cat

Top comments (0)