Command Line Flashcards
Name all the directory commands that come to mind when using the command line, give 5 commands at least.
cd cd.. cd nameFile ls pwd mkdir rmdir
Name all the working with files commands you know.
cp filename1 filename2 chmod diff more mv rm
Name other miscellaneous commands
control+C q date echo help history pico ps sudo
Before we explore the command line it’s important to have a good grasp on the following: operating systems, the kernel, console, terminal, shell, command line (and subroutines).
First what is an OS? What does it do?
Operating systems (windows, OSX, Linux, iOS, Android) are the medium between hardware and software. Each OS requires devs to develop in languages that the OS demands, for ex the Microsoft OS requires visual basic code.
Microsoft owns 85% of the OS market, Apple owns 9%. Android has 65% of the mobile market, Apple has 25%.
OS’s transfer data between memory and disks or rendering output onto a display device. It provides an awesome platform (hardware abstraction layer) to run high level system software and app software.
What is the kernel?
When you think the OS, think the kernel. When you think the shell giving access to the OS, think the shell giving access to the kernel. When you think of the CLI affecting the OS think of the CLI affecting the kernel. The kernel is the nucleus and central coreof the OS.
It has complete control over anything that happens in the system. Systems programmers have to deal with the kernel, web devs will not.
What is the console?
The system console, computer console, root console, operator’s console, or simply console is the text entry and display device for system administration messages, particularly those from the BIOS or boot loader, the kernel, from the init system and from the system logger.
It is a physical device consisting of a keyboard and a screen, and traditionally is a text terminal, but may also be a graphical terminal.
System consoles are generalized to computer terminals, which are abstracted respectively by virtual consoles and terminal emulators. Today communication with system consoles is generally done abstractly, via the standard streams (stdin, stdout, and stderr), but there may be system-specific interfaces, for example those used by the system kernel.
Console is also just a generalized term for a text interface. https://www.reddit.com/r/learnprogramming/comments/36wvs8/whats_the_difference_between_a_terminal_shell/
What is the command line and the prompt?
The command line interpreter (or OS X Terminal) is the app, and the CLI window is the place in which you write your code to manipulate your systems, the command prompt is the last digit at the end of the file location text, such as the dollar sign, and it serves as an indication or invitation on where to type (http://bit.ly/2bnwnV5).
What is the shell?
A shell or as OS shell is a user interface to the computers OS services. The CLI is one type of OS shell and another type is any graphical interface that also gives access to the kernel/OS nucleus. It is called the shell because it is the layer around the operating system kernel (http://bit.ly/2bAkh9P).
What is Unix
Unix is a very popular OS, created at Bell labs by Dennis Ritchie. Loved by many because of its consistency (it rarely ever changed unlike Microsofts OS’s), power, and the Unix philosophy, (http://bit.ly/2bx0v1P)
What is the Unix philosophy
learn later
Linux and Unix?
Linux is basically a copy of unix, but both are entirely different OS’s.
Mac Command Line (shell) Primer
http://apple.co/2bhhKkp
Why does the CLI pwn the GUI so badly?
(http://bit.ly/1dcYVZ8) While the GUI is easier to understand (doesn't need memorization of key commands and familiarity of processes) and GUI is better for multitasking (running multiple windows/programs at once is simpler using GUI) CLI are better in every interactive and performant other way. The following are details: Speed Control Resources Scripting Remote access Diversity Strain
OS Commandline commands
http: //ss64.com/osx/
http: //www.collier.sts.vt.edu/stc/ch2.htm
https: //www.troyhunt.com/its-time-that-you-vulnerable-human/