Saturday, April 27, 2019

coursera: Unix Workbench

  • You type command line commands after the prompt.
  • clear will clean up your terminal.
  • echo prints text to your terminal.
  • You can scroll through your command history with the Up and Down arrow keys.
I hope to look back at this post in the future and see how much I have learned.
 You can identify a specific file or folder by its path.

  • The root directory (/) contains all of the folders and files on your computer.
  • Your home directory (~) is the directory where your terminal always starts.
  • Use the cd command to change your working directory.
  • The pwd command will print the working directory.
  • The ls command will list files and folders in a directory.
 There’s no undo button in Unix so I’ll have to live with this mistake. --wow


  • Use mkdir to create new directories.
  • The touch command creates empty files.
  • You can use > to redirect the output of a command into a file.
  • >> will append command output to the end of a file.
  • Print a text file to the command line using cat.
  • Inspect properties of a text file with wc.
  • Peek at the beginning and end of a text file with head and tail.
  • Scroll through a large text file with less.
  • nano is simple text editor.
 Another hidden use of the mv command is that you can use it to rename files and folders. The first argument is the path to the folder or file that you want to rename, and the second argument is a path with the new name for the file or folder.


  • mv can be used for moving or renaming files or folders.
  • cp can copy files or folders.
  • You should try to avoid using rm which permanently removes files or folders.

No comments:

Post a Comment