in ,

Terminal Commands Reference

My personal reference for the terminal / command line / console.

System Info

  • man (Manual) man command – show the manual for command
  • clear Clears information on the display screen to provide a blank slate
  • date show the current date and time
  • cal show this months calendar
  • w display who is online
  • whoami who you are logged in as

Navigation

  • ls -l Displays a long list vertically with file permissions, date modified and file name (linux)
  • ls -la Displays all files (linux)
  • ls -al formatted listing with hidden files (linux)
  • cd Change Directory
  • cd ~ Return to home directory
  • .. Go up one level / directory

 

File Manipulation

  • mkdir dir create directory dir
  • touch filename.extension Make a new file of filename at current location. Extension must be included.
  • rm file delete file
  • rm -r dir delete directory dir
  • rm -f file force remove file
  • rm -rf dir force remove directory dir

SSH

  • ssh user@host connect to host as user
  • ssh -p port user@host connect to host on port port as user
  • ssh-copy-id user@host – add your key to host for user to enable a keyed or password-less login

References

https://www.davidbaumgold.com/tutorials/command-line/

css3

CSS – Styling Every Other Element

Node.js Basics