Sunday 7 February 2016

Ideas: Command Line Interface (CLI)

During week 1 of pre course at Makers Academy, we were introduced to the command line via a terminal.



The command line is a really cool and efficient way of managing the computer resources. A great thing about the terminal, I believe, is that I can perform tasks without having to resort to the mouse (which is annoying and wastes time).

Here are list of things that I have done using CLI:

  • Structure of a command line interface
  • Finding the current path, moving between different directories
  • Creating, moving, copying, deleting and listing files and directories (long and short form)
  • Searching for files or directories with specific names
  • Searching for files which contain specific text 
  • Changing permissions of files and directories
  • Viewing contents of files 
  • Adding to a file's contents
  • Using some basic functions ie date, listing processes running, word count, 
  • Opening programs, or open a file with a specific program
  • Stopping a process that is running
  • Getting help for any method used in the CLI
  • Adding command to a file (ie ruby script) that runs the file without having to write out the full command
  • Changing terminal environment (paths and variables) for one time or permanent 
  • Using a terminal text editor (not really a fan)
  • Using a combination of the above and adding flags to get more options for each command
This list for me acts a sort of revision aid, that is why I have not added the commands. Reading this and being able to recall or do the actions above without help shows me that I have learned this stuff.

Here are some links to the ideas studied here


NOTE: This list is not exhaustive, I am sure there are loads of commands and actions that I could do through the terminal. 

No comments:

Post a Comment