Command Line Flashcards

1
Q

Name all the directory commands that come to mind when using the command line, give 5 commands at least.

A
cd
cd..
cd nameFile
ls 
pwd 
mkdir 
rmdir
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name all the working with files commands you know.

A
cp filename1 filename2
chmod 
diff 
more 
mv 
rm
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name other miscellaneous commands

A
control+C 
q
date
echo 
help
history
pico
ps
sudo
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the kernel?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the console?

A

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/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the command line and the prompt?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the shell?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Unix

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Unix philosophy

A

learn later

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Linux and Unix?

A

Linux is basically a copy of unix, but both are entirely different OS’s.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Mac Command Line (shell) Primer

A

http://apple.co/2bhhKkp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why does the CLI pwn the GUI so badly?

A
(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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

OS Commandline commands

A

http: //ss64.com/osx/
http: //www.collier.sts.vt.edu/stc/ch2.htm
https: //www.troyhunt.com/its-time-that-you-vulnerable-human/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly