My Docs
My BlogPython Data StructuresRepoFamily-Promise-Docs
Web-Dev-Hub-Docs
Web-Dev-Hub-Docs
  • Home
  • Navigation
  • Tools
    • Tools
      • Docker
      • G-Cloud & Firebase
      • Heroku
      • Dropbox
      • Email
      • Tools
      • DuckDuckGo
      • Elasticsearch
      • CodeSandbox
      • Product Hunt
      • Raycast
      • Elasticsearch
      • Tools
      • Showcase
        • Utilities
        • Continued
          • Page 3:
    • Downloads
    • REPL.IT Compilations
      • Part 2
    • Past Notes
      • Command Line Reference
    • Git
    • JavaScript
      • Interview Problems
      • General JavaScript Notes
      • jQuery
      • NodeJS
        • Node argv
        • NPM
        • Express
          • ExpressJS Overview
          • Sequelize
      • Regex
      • React
        • React Examples:
        • Redux
        • Redux Docs
          • Redux Resources
        • React Notes
    • My Bash Commands
    • Learning
  • Programming Languages
    • Programming Languages
      • File System
      • Basics
      • PSEUDO Programing Languages
        • HTML
      • CSS
      • List Of Programming Languages By Type
      • Tools-Of-The-Trade
        • Linux
        • Docker
      • Git
      • Python
        • Pydrive:
        • Practice
        • Pipenv
        • Untitled
      • Bash
        • SED
      • CHEATSHEETS
      • Java
      • Html
      • Markdown
      • CSS
      • SCSS
      • C & C++
      • Ruby
      • SQL
        • PostgreSQL
      • Jest
      • JavaScript
      • Typescript
      • C++
      • Babel
    • What is a Programming Language?
  • Python
    • Python
      • Python General Notes
      • Python Quiz
      • Python Cheat Sheet
      • Python Snippets
      • Python at length
    • Install PIP
  • JavaScript
    • JavaScript
      • Jquery
      • Page 16
    • Writing Files
    • JS-Leetcode
  • Web Development Frameworks & Libraries
    • GRAPHQL
    • React
    • Jquery
      • Prac
    • GATSBY
      • Untitled
      • Building with Components
      • Plugins, Themes, & Starters
      • GraphQL Concepts
  • Productivity
    • Productivity
      • Awesome Productivity Tools for Back-to-School
  • Misc
    • Misc
      • Experiments
  • GitGateway
    • Links
    • Bookmarks
  • Websites
    • Websites
    • Not My Websites:
    • Articles
  • Backend
    • Backend
  • Networking
    • Networks
  • Resources
    • Web Dev Tutorials
      • Node
        • API Security
    • Resources
    • Video Resources
  • General Knowledge
    • General Knowledge
    • Glossary
    • Knowledge Bank
  • Finance
    • Finance
    • Finance Reference
    • Financial Trends
  • Science & Tech (Innovation)
    • Science & Tech
    • Articles
  • Reading
    • Reading
  • Social Media & Trends
    • Trends In Web Dev
    • Analytics
    • FB-Dev-Open Source
      • Content Publishing
    • IG-API
  • Docs
    • Docs
      • NodeJS
        • installed it?
        • Timers in Node.js and beyond
        • Node.js web app
        • Overview of Blocking vs Non-Blocking
        • Don't Block the Event Loop (or the Worker Pool)
  • Code Editors & Tools
    • Vscode
      • Vscode Docs
      • How To Speed Up Vscode
  • Cool Stuff
    • Cool Observable Notebooks
  • Server-Side
    • GraphQL
      • Intro
    • Rest VS GraphQl
    • REST-API
    • Public APIs
  • WEB_DEV_TOOLS
    • Web Dev Tools
    • Cloudinary
    • Postman
      • Creating an API
      • Trouble Shooting Postman
    • Netlify
      • Facebook Graph API
      • Pandoc
      • Graph API
      • Troubleshooting
      • Examples
      • HTTPS (SSL)
      • Open Authoring
      • Netlify CMS
      • Git Gateway
  • DS_ALGOS_BRAINTEASERS
    • A Quick Guide to Big-O Notation, Memoization, Tabulation, and Sorting Algorithms by Example
  • Free-Stuff
    • Free Stuff
  • Job-Search
    • Job Search
    • Outreach
  • General Comp Sci
    • Principles behind the Agile Manifesto
  • Blockchain & Crypto
    • Blockchain Basics
      • Basics:
  • Data Structures & Interviewing
    • Data Structures
    • Computational Complexity
  • REACT_REVISITED
    • Modern React with Redux
      • React-Projects
  • WEBDEV-Bootcamp-Notes
    • 🏫Lambda
      • 1.1 - User Interface and Git
      • Page 2
      • Page 1
      • Page 3
      • Page 4
      • Page 5
      • Page 6
      • Page 7
      • Page 8
      • Page 9
      • Page 10
      • Page 11
      • Page 12
      • Page 13
      • Page 14
      • Page 15
      • CS-Python-Notes
        • Python
  • Unsorted-Notes
    • Compiled-Random-Notes
    • Testing:
      • Configure Jest for Testing JavaScript Applications
      • install, configure, and script Cypress for JavaScript web applications
      • Test React Components with Jest and `react-testing-library`
      • Use testing library to evaluate any framework...
  • Medium-articles
    • My Articles
      • Python For JS Developers
      • JavaScript Programmer
      • Awesome Web Development Youtube Video Archive
      • Bash Commands That Save Me Time and Frustration
      • Git-Tricks
      • scrap
      • Medium Article
      • Everything You Need To Know About Relational Databases, SQL, PostgreSQL and Sequelize To Build…
      • Machine Learner
      • Here’s the expanded list:
      • The Complete JavaScript Reference Guide
      • This is really cool!
      • Web Development Interview Part 3💻
      • Mutability And Reference VS Privative Types in JavaScript
      • React
      • Super Simple Intro To HTML
      • Introduction to React for Complete Beginners
      • Web Developer Resource List Part 2
      • Front End Interview Questions Part 2
      • A List Of Tools For Improvement
      • Github Repositories That Will Teach You How To Code For Free!
      • Libraries
      • Machine Learner
      • Here’s the expanded list:
      • The Complete JavaScript Reference Guide
  • 🖲️AI
    • Pytorch
      • Documentation
  • 🎙️Audio
    • Audio
Powered by GitBook
On this page
  • Command Line Reference
  • Summary of basic commands
  • Glossary of terms

Was this helpful?

  1. Tools
  2. Past Notes

Command Line Reference

PreviousPast NotesNextGit

Last updated 3 years ago

Was this helpful?

Command Line Reference

While getting to know the different ways to interact with your command-line environment, Ubuntu on Windows and Terminal on macOS, it's handy to have a reference lying about. This can be that reference!

You can also download this if you're the type of person that likes to have it available that way, too.

Summary of basic commands

The following table lists the commands to perform for different types of actions on files and directories in the Terminal/Ubuntu

Action

Files

Directories

Copy

cp

cp -r

Create

code

mkdir

Delete

rm

rmdir, rm -r

Inspect

ls

ls

Move

mv

mv

Navigate to

cd

View content

cat

ls

Glossary of terms

Here's a table of terms that you will want to remember not only as you work through this prep work but also during the remainder of your programming career.

Term

Definition

absolute path

A path that refers to a particular location in a file system. Absolute paths are usually written with respect to the file system’s root directory, and begin with either “/” (on Unix) or “\” (on Microsoft Windows). An example of an absolute path is /home/webdevhub/Downloads which would be the path for the directory that contains downloads for the "webdevhub" account.

command-line interface

A user interface based on typing commands that interacts with files and the operating system. On Windows, you will use the Ubuntu environment for that. On macOS, you will use Terminal.

current working directory

The directory that relative paths are calculated from; equivalently, the place where files referenced by name only are searched for. The current working directory is usually referred to using the shorthand notation "." (pronounced “dot”).

file system

A set of files and directories. A file system may be spread across many physical devices, or many file systems may be stored on a single physical device; the operating system manages access.

filename extension

The portion of a file’s name that comes after the final “.” character. By convention this identifies the file’s type: .txt means “text" file, .png means “Portable Network Graphics" file, and so on. These conventions are not enforced by most operating systems: it is perfectly possible (but confusing!) to name an MP3 sound file "homepage.html" which makes it look like an HTML file for showing content in a Web browser!

home directory

The default directory associated with an account on a computer system. By convention for your account, all of your files are stored in or below your home directory. On macOS, that is found in the /Users/«your-name»k directory. On Ubuntu, you can find your home directory under /home/«your-name». On Windows, you will find it under C:\Users\«your-name». On Ubuntu and macOS, the shortcut for your home directory is "~".

operating system

Software that manages interactions between users, hardware, and software processes. Common examples are Linux, macOS, and Windows.

parent directory

The directory that “contains” the one in question. Every directory in a file system except the root directory has a parent. A directory’s parent is usually referred to using the shorthand notation ".." (pronounced “dot dot”).

path

A unique description that specifies the location of a file or directory within a file system. There are two kinds of paths: absolute paths and relative paths.

relative path

A path that specifies the location of a file or directory with respect to the current working directory. Any path that does not begin with a path separator character, "/" on Ubuntu and macOS, is a relative path. The path "Documents/Contracts/" is a relative path from the current working directory into a "Contracts" subdirectory under a "Documents" subdirectory. You know that "Contracts" is a subdirectory because there's another path separator ("/") after it.

root directory

The top-most directory in a file system. On macOS and Ubuntu, its name is "/".

shell

A command-line interface such as Bash or Z shell that allows you to interact with the operating system.

subdirectory

A directory contained within another directory. All directories except the root directory are subdirectories.

wildcard

A character used to specify a pattern to match. In Bash or Z shell, the wildcard character "*" matches zero or more characters. This means that "*.txt" would match any name that ends with ".txt".

Regarding file extensions: since many applications use filename extensions to identify the MIME type of the file, misnaming files may cause those applications to fail. If you copy a picture from your phone to your computer and rename it "recipes.docx", then your word processor program will probably try to open it and complain that the file is unrecognizable or corrupt. You know that it's just an image, though, because you're smarter than the computer.

one-page PDF