NDOS515_Session_2 Flashcards Preview

Networking > NDOS515_Session_2 > Flashcards

Flashcards in NDOS515_Session_2 Deck (31):
1

"Desktop"...?

Shows up on your GUI desktop

2

"Documents"...?

for...documents.

3

"Bin"...?

holds "binaries" and executable scripts

4

"public_html"...?

(sometimes) has your Web page(s)

5

"pwd"...?

tells where you are

6

"cd"...?

to get to a new directory (folder)

7

"~"...?

refers to your home
- cd ~
- cd ~/music

8

Leading slash (or ~) means ...?

Start at top.

9

Absence of slash means...?

From here.

10

Linux Standard Directories:
/bin...?

Important executables.

11

Linux Standard Directories:
/etc...?

System configuration.

12

Linux Standard Directories:
/home...?

Users homes

13

Linux Standard Directories:
/tmp...?

Temporary Files.

14

Linux Standard Directories:
/user/bin...?

More executables.

15

Redirection:
The output of any command can be captured into a file...?

ls > listing.txt
(note: ".txt" isn't necessary and is omitted by experienced Unix users)

16

Adding to a file...?

ls/bin >> listing.txt

17

Viewing files:
Short files can be viewed with...?

cat.
(cat listing.txt)

18

Viewing files:
For longer ones, use...?

Less
(less bigfile)
(type space to see more, q to quit, h for help)

19

Viewing files:
Use file to find out what something is...?

file /etc/passwd

20

Copy, rename/move, delete...?

- cp coolstuff coolstuff.bak
- mv coolstuff.bak backup
- mv backup my-backups/coolstuff.bak
- rm my-backups/coolstuff.bak

21

Unix (and Linux) is design on the assumption that you don't like...?

Chatty computers.

22

Success in Linux is generally indicated by...?

Silence:
(rm backup
rm backup2
rm: cannot remove 'backup2': No such file or directory)

23

Directory Management:
For historical reasons, directories are handled differently:

- mkdir backups
- rmdir obsolete
- cp -r public_html backups/web-backup
- rm -r backups
(WARNING rm -r is extremely dangerous. Never type Enter until you've triple-checked what you typed!)

24

Globbing:
It's a pain to type lots of file names, so you can...?

abbreviate.
- ls a*
- less *.txt (omits files starting with dot... why)
- ls .??*
More choices, but these are common ones.

25

What is an editor...?

- Shows you exactly what's in the file
- Give you control over file contents
- Can be hard to learn

26

What's a word processor...?

- Usually easy for beginners to get started
- Puts priority on formatting and layout
- Shows you what printed page will look like
- File contents are very different from what you see.

27

Simple Editors on Linux:
Nano...?

-Command-line
- Fairly easy to start with
- Word-wraps by default, which can be problematic

28

Simple Editors on Linux:
gedit...?

- GUI
- Easy to get going

29

Powerful Linux Editors:
vi...?

- Command line
- Hard to learn
- Modal
- Popular with many (because they learned t first?)

30

Powerful Linux Editors:
emacs...?

- Command line or GUI
- Hard to learn
- Amazingly powerful and flexible (too much?)
- Lets you click, type, use arrow keys and mouse (non-modal)

31

Best way to choose an editor...?

1. Decide how much work you're willing to put out.
2. Try at least two
- Give enough time to actually learn them well
- Choose significantly different ones.
3. Pick based on what fits your preference and needs.
- DON'T choose one just because your friends use it.