Skip to content

This is a repo I reference to people when they want to become more familiar with the terminal as they start learning to code.

Notifications You must be signed in to change notification settings

Harrison97/UseTheTerminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

A command line reference sheet.

Listing Files

  • ls list files in the current directory
  • ls -a list files, INCLUDING HIDDEN FILES
  • ls -l list files in a list output format
  • ls -al list all hidden files in a list output format

Make directories

  • mkdir testFolder Make a folder called "testFolder"

Changing directories

  • cd testFolder change directories to the "testFolder" folder

Removing files/folders

  • rm file.txt Remove the file called "file.txt"
  • rm -rf testFolder Remove the folder called "testFolder" and everything in it

Git commands

  • git status View the status of your current project.
  • git add file.txt Stage the specific file "file.txt" for a change to be commited
  • git add . Stage all files in the current repo for change to be commited
  • git commit -m "Commit message that will be saved in the log" Commit(AKA Save) stage changes
  • git push push local repo with new commits to the remote repo in github
  • git log View the git log. This conatins all the commit history.
  • git pull Pull the latest changes of the remote branch.
  • git pull --reabse Pull the latest changes of the remote branch, and rebase your new changes ontop of the new changes in the remote branch. This will help resolve merge conflicts.

Ranger commands

  • zh Show hidden files
  • space Select/Deselect files or folders
  • yy Copy file(s) or folder(s)
  • dd cut file(s) or folder(s)
  • pp Paste file(s) or folder(s)
  • a Rename a file
  • :mkdir testFolder Create a folder called "testFolder"

About

This is a repo I reference to people when they want to become more familiar with the terminal as they start learning to code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published