Index

Symbols

“ (double quotes), 124

‘ (single quotes), 124

- option (su command), 8485

/ (forward slash)

command, 75

in paths, 29

/bin directory, 30

/home directory, 30

/media directory, 30

/root directory, 30

/sbin directory, 30

/tmp directory, 30

/usr/bin directory, 30

/usr/sbin directory, 30

/usr/share/doc directory, 27

: (colon) command, 76

; (semicolon) in Perl statements, 119

| (pipe) in redirection, 4445

#! (sha-bang)

in bash shell scripting, 111

in Perl, 120

in Python, 132

$ (dollar sign) command, 71

( (left parenthesis) command, 72

) (right parenthesis) command, 71

* (asterisk) as wildcard, 38

? (question mark)

command, 75

as wildcard, 39

[[ (double left square brackets) command, 72

[] (square brackets) as wildcard, 39

]] (double right square brackets) command, 72

{ (left curly brace) command, 72

} (right curly brace) command, 72

< (left arrow) in redirection, 43

> (right arrow) in redirection, 4142

>> (double right arrow) in redirection, 41

0 (zero) command, 71

2> (two right arrow) in stderr redirection, 4243

A

A command, 69

a command, 69

absolute paths, 3133

adding user accounts, 9192

aliases, 56

append method, 135

apt-get command, 88

apt-get install command, 91

arguments (in command line), 22

arrays, 122124

asterisk (*) as wildcard, 38

auto indentation in vim, 132

awk utility, 105107

B

B command, 71

b command, 71

bash shell. See shell

/bin directory, 30

bluefish editor, 82

branches (Git), 169171

comparing files, 176177

creating, 169

merging files, 178182

pushing, 171

removing, 179

switching, 169170

break command, 116, 137

bzip2 command, 6061

C

C programming language, 107108

packages, 142145

system libraries, 139142

C++ programming language, 108

packages, 142145

system libraries, 139142

capitalize method, 134

case statements

in bash shell scripting, 115, 117

in Perl, 126

cat command, 4950

cd command, 3233

change directory process, 31

changing permissions, 5859

chmod command, 5859

choosing

Linux distribution, 1415

repository host, 156157

cloning, 155

closed source, 45

cmp command, 54

colon (:) command, 76

command line

aliases, 56

benefits of, 4748

comparing files, 5455

cmp command, 54

diff command, 5455

components of, 22

compressing files, 5962

bzip2 command, 6061

gzip command, 60

tar command, 6162

documentation, 2227

/usr/share/doc directory, 27

help command, 2223

info command, 2627

man pages, 2326

finding files, 5254

find command, 5254

locate command, 52

grep command, 6266

finding files, 6566

origin of name, 62

regular expressions, 6365

history, 5657

logging in via, 1617

number of commands, 48

permissions, 5759

changing, 5859

files versus directories, 58

viewing, 57

redirection, 4145

shell, 21

terminal windows, 21

variables, 5556

vi editor. See vi editor

viewing files, 4852

cat command, 4950

file command, 4849

head command, 51

less command, 5051

more command, 5051

tail command, 51

wc command, 5152

wildcards, 3840

comments

in bash shell scripting, 111

in Perl, 119

commercial software, 45

comparing files, 5455

branches, 176177

cmp command, 54

diff command, 5455

git diff command, 173177

staged versus committed files, 175

white space, 175176

comparison operators in Python, 137

compiled languages, 107

C programming language, 107108

C++ programming language, 108

Java, 108, 145146

packages, 142145

Debian, 145

RPM, 142145

scripting languages versus, 97

system libraries, 139142

managing, 140141

viewing, 142

compressing files, 5962

bzip2 command, 6061

gzip command, 60

tar command, 6162

conditional expressions

in bash shell scripting, 113115

in Perl, 126128

in Python, 137

configuring Git, 157162

connecting to repositories, 186187

continue command, 116, 137

copying

files, 3738

in vi editor, 73

copyleft, 8

cp command, 3738

credential helper, 186

D

d$ command, 74

DAG (Directed Acyclic Graph), 153

data structures. See variables

dd command, 74

Debian, 14, 145

debugger (Perl), 120121

del method, 135

deleting

directories, 3637

user accounts, 93

in vi editor, 74

desktops, 1821

df command, 87

dG command, 74

dictionaries, 133, 135. See also hashes

diff command, 5455

Directed Acyclic Graph (DAG), 153

directories

creating, 36

-d option (ls command), 40

deleting, 3637

listing files in, 3335

managing, 3637

most used, 30

naming conventions, 3031

permissions, 58

root, 29

wildcards, 3840

working, 31

disk usage, displaying, 8688

display manager, 1516

Distributed Version Control Systems (DVCSs), 151

distribution. See Linux distribution

distro. See Linux distribution

documentation, 2227. See also resources for information

/usr/share/doc directory, 27

help command, 2223

info command, 2627

man pages, 2326

vi editor, 7779

dollar sign ($) command, 71

double left square brackets ([[) command, 72

double quotes (“), 124

double right arrow (>>) in redirection, 41

double right square brackets (]]) command, 72

dpkg command, 88

dpkg -l command, 90

DVCSs (Distributed Version Control Systems), 151

dw command, 74

E

E command, 71

e command, 71

echo command, 55, 112

ed editor, 6768

editors

bluefish, 82

ed, 6768

Emacs, 7980

gedit, 81

joe, 81

kwrite, 81

lime, 82

nano, 81

vi. See vi editor

vim, 6869

egrep command, 116

else statement, 137

elsif statement, 125

Emacs editor, 7980

environment variables, 56

executables, 23

executing

bash shell scripts, 112

Perl code, 120121

Python code, 132133

exit command, 17, 85

extend method, 135

F

file command, 4849

file locking, 149

file test comparisons

in bash shell scripting, 115

in Perl, 127128

files

comparing, 5455

branches, 176177

cmp command, 54

diff command, 5455

git diff command, 173177

staged versus committed files, 175

white space, 175176

compressing, 5962

bzip2 command, 6061

gzip command, 60

tar command, 6162

copying, 3738

finding, 5254

find command, 5254

grep command, 6566

locate command, 52

hidden, 34

ignoring in Git, 166167

listing, 3335

managing, 3745

merging, 178182

multiple locations in Git, 165166

naming conventions, 3031

permissions, 58

reading

in Perl, 128129

in Python, 137

redirection, 4145

removing in Git, 168169

retrieving from remote repository, 184186

viewing, 4852

cat command, 4950

file command, 4849

head command, 51

less command, 5051

more command, 5051

tail command, 51

wc command, 5152

wildcards, 3840

filesystem. See also directories; files

defined, 29

listing files in, 3335

most used directories, 30

naming conventions, 3031

navigating, 3133

find command, 5254, 94

finding

files, 5254

find command, 5254

grep command, 6566

locate command, 52

software, 8990

text in vi editor, 75

first generation version control software, 149

flags (in command line), 22

flow control statements

in bash shell scripting, 115117

in Perl, 124126

in Python, 136137

foreach statement, 123, 125

for loops

in bash shell scripting, 115, 116

in Perl, 125

in Python, 136

forward slash (/)

command, 75

in paths, 29

FOSS (Free and Open Source Software), 6

Four Freedoms, 6

free software, 57

Free Software Foundation (FSF), 6

functions

in Perl, 129

in Python, 138

G

G command, 72

gedit editor, 81

Git

branches, 169171

choosing repository host, 156157

comparing files, 173177

branches, 176177

staged versus committed files, 175

white space, 175176

configuring, 157160, 161162

connecting to repositories, 186187

git status command, 162165

ignoring files, 166167

installing, 154155

managing repositories, 183184

merging files, 178182

multiple file locations, 165166

patching, 187

removing files, 168169

resources for information, 162

retrieving content from remote repository, 184186

stages, 155156

git add command, 158, 162

git apply command, 187

git branch command, 169

git checkout command, 169

git clone command, 184

git commit command, 158, 162, 185

git config command, 161162

git diff command, 173177, 187

branches, 176177

staged versus committed files, 175

white space, 175176

git difftool command, 177

git help command, 162

git log command, 170

git merge command, 178

git mergetool command, 181

git push command, 159, 185

git remote add command, 183

git remote command, 183

git rm command, 168169

git status command, 162166

git-all package, 155

given statement, 126

grep command, 6266, 89

finding files, 6566

origin of name, 62

regular expressions, 6365

groupadd command, 93

groupdel command, 94

groups

explained, 93

managing, 9394

GUI

desktops, 1821

logging in via, 1516

man page viewer, 26

vim editors in, 81

gzip command, 60

H

H command, 72

h command, 71

hashes, 122, 124. See also dictionaries

head command, 51

help command, 2223

help documentation. See documentation

hidden files, listing, 34

history command, 5657

/home directory, 30

HTTPS, connecting to repositories, 186187

I

I command, 69

i command, 69

id command, 84

IDEs (Integrated Development Environments), 108109

if statements

in bash shell scripting, 113

in Perl, 124125

in Python, 136

ignoring files in Git, 166167

immutable, 135

info command, 2627

insert method, 135

insert mode (vi editor), 6970

installing

Git, 154155

Java, 145146

Linux distribution, 1314

software, 9091

integer comparisons in bash shell scripting, 115

Integrated Development Environments (IDEs), 108109

international licenses, 8

interpreted languages. See scripting languages

J

j command, 71

Java, 108

installing, 145146

packages, 142145

system libraries, 139142

JavaScript, 103104

joe editor, 81

K

k command, 71

kernel, 13

keys command, 124

kwrite editor, 81

L

L command, 72

l command, 71

last line mode, 76

last statement, 126

ldd command, 142

left arrow (<) in redirection, 43

left curly brace ({) command, 72

left parenthesis (() command, 72

len function, 134

less command, 5051

libraries. See system libraries

licensing, open source

benefits of, 7

categories of, 8

examples, 89

resources for information, 9

terminology, 8

lime editor, 82

links. See resources for information

Linux distribution

choosing, 1415

defined, 13

installing, 1314

Linux systems, logging in, 1518

via command line, 1617

via GUI, 1516

via network, 1718

listing

files, 3335

software, 8990

listings

all files up to date, 164165

case statement example, 117

cat -n command, 4950

deleting file from working directory, 168

features branch, 178

git diff between branches, 176

head command, 51

if statement example, 113

install rpm-build, 143144

install source RPM, 144145

ldd command, 142

matching with grep, 63

merged file, 180

numbers versus strings, 134

the - option of su command, 85

read statement example, 118

scalar statements, 122123

searching with grep, 6566

set command, 55

single difference, 174175

staged versus committed difference, 175

staging file to be deleted, 168168

testing user input, 114115

three versions of file, 165

while loop, 125

white space mystery, 175176

yum install command, 90

lists, 133, 134135

locate command, 52

logging into Linux systems, 1518

via command line, 1617

via GUI, 1516

via network, 1718

loops

in bash shell scripting, 115117

in Perl, 124126

in Python, 136137

ls command, 3335

-d option, 40

-l option, 57

M

M command, 72

man 5 passwd command, 91

man command, 2326

man pages, 2326

managing

directories, 3637

files, 3745

filesystem, 3335

groups, 9394

software, 88

/media directory, 30

merge process, 150151

merging files, 178182

mkdir command, 36

modifiers (vi editor), 72

modifying user accounts, 92

modules

in Perl, 129130

in Python, 138

more command, 5051

movement commands (vi editor), 7172

multiple file locations in Git, 165166

mv command, 38

my statement, 129

N

N command, 75

n command, 75

naming conventions for files and directories, 3031

nano editor, 81

navigating filesystem, 3133

network, logging in via, 1718

newline characters, 119

next statement, 126

nonreusable licenses, 8

numeric comparisons in Perl, 126–127

numeric variables, 133134

O

O command, 69

o command, 69

octal method (changing permissions), 5859

open source

defined, 5

free software, 57

licensing

benefits of, 7

categories of, 8

examples, 89

resources for information, 9

terminology, 8

open statement, 137

options (in command line), 22

P

P command, 74

p command, 74

packages, 142145

Debian, 145

RPM, 142145

paging, 44

passwd command, 92

passwords, complexity of, 92

pasting in vi editor, 74

patch output, 174

patching, 186, 187

paths, 29

for bash shell scripts, 112

types of, 3133

Perl, 99100, 119130

comments, 119

conditional expressions, 126128

executing code, 120121

flow control statements, 124126

functions, 129

modules, 129130

print statements, 119

reading files, 128129

resources for information, 121122

as unstructured, 119

variables, 122124

perl command, 120

perldoc command, 121122

permissions, 5759

changing, 5859

files versus directories, 58

viewing, 57

permissive permissiveness, 8

permissiveness, 8

PHP, 102103

pipe (|) in redirection, 4445

piping, 4445

pop method, 135

pop statement, 123

positional parameter variables, 112

pragmas in Perl, 130

print statements, 119, 132

private variables, 129

programming languages

compiled languages, 107

C programming language, 107108

C++ programming language, 108

Java, 108, 145146

packages, 142145

system libraries, 139142

IDEs, 108109

scripting languages

awk utility, 105107

bash shell, 9899, 111118

comparing, 99

compiled languages versus, 97

JavaScript, 103104

Perl, 99100, 119130

PHP, 102103

Python, 100101, 131138

Ruby, 102

sed utility, 105107

Tcl/Tk, 104105

proprietary software, 45

push (Git), 156, 159

push statement, 123

pushing branches (Git), 171

pwd command, 32

.pyc files, 132133

.pyo files, 132133

Python, 100101, 131138

conditional expressions, 137

executing code, 132133

flow control statements, 136137

functions, 138

modules, 138

reading files, 137

resources for information, 133

as structured language, 131132

variables, 133136

python command, 132

Q

qq statement, 124

question mark (?)

command, 75

as wildcard, 39

quitting vi editor

and saving, 7677

without saving, 73, 77

quoting variables, 114

qw statement, 124

R

read() method, 137

read statements, 117118

reading files

in Perl, 128129

in Python, 137

readline method, 137

Red Hat, 14

redirection, 4145

regular expressions

in bash shell scripting, 6365

in Perl, 128

relative paths, 3133

remote repository. See repositories

remove method, 135

removing. See also deleting

branches in Git, 179

files in Git, 168169

software, 91

repeater modifiers (vi editor), 72

replacing text in vi editor, 7576

repositories

connecting via SSH, 186187

managing, 183184

retrieving content from, 184186

repository host, choosing, 156157

resources for information. See also documentation

bash shell scripts, 118

Git, 162

open source licensing, 9

Perl, 121122

Python, 133

right arrow (>) in redirection, 4142

right curly brace (}) command, 72

right parenthesis ()) command, 71

rm command, 3637, 38

rmdir command, 36

/root directory, 30

root directory, 29

root user, accessing, 8486

logging in directly, 83

with su command, 8485

with sudo command, 8586

rpm command, 88

RPM packages, 142145

rpm -qa command, 90

Ruby, 102

running. See executing

S

s command, 69

saving in vi editor, 7677

/sbin directory, 30

scalars, 122123

scripting languages

awk utility, 105107

bash shell, 9899, 111118

comments, 111

conditional expressions, 113115

echo command, 112

executing code, 112

file test comparisons, 115

flow control statements, 115117

integer comparisons, 115

positional parameter variables, 112

resources for information, 118

sha-bang (#!), 111

user interaction, 117118

comparing, 99

compiled languages versus, 97

JavaScript, 103104

Perl, 99100, 119130

comments, 119

conditional expressions, 126128

executing code, 120121

flow control statements, 124126

functions, 129

modules, 129130

print statements, 119

reading files, 128129

resources for information, 121122

as unstructured, 119

variables, 122124

PHP, 102103

Python, 100101, 131138

conditional expressions, 137

executing code, 132133

flow control statements, 136137

functions, 138

modules, 138

reading files, 137

resources for information, 133

as structured language, 131132

variables, 133136

Ruby, 102

sed utility, 105107

Tcl/Tk, 104105

searching. See finding

second generation version control software, 149151

sed utility, 105107

selecting. See choosing

semicolon (;) in Perl statements, 119

set command, 55

sets, 136

sha-bang (#!)

in bash shell scripting, 111

in Perl, 120

in Python, 132

shared library calls, 139

shell

defined, 21

scripting, 9899, 111118

comments, 111

conditional expressions, 113115

echo command, 112

executing code, 112

file test comparisons, 115

flow control statements, 115117

integer comparisons, 115

positional parameter variables, 112

resources for information, 118

sha-bang (#!), 111

user interaction, 117118

variables, 5556

shift statement, 123

single quotes (‘), 124

sl package, 94

Slackware/SUSE, 14

software

installing, 9091

listing and finding, 8990

managing, 88

removing, 91

sort statement, 123

source code

closed source, 45

defined, 34

open source

benefits of, 7

defined, 5

free software, 57

licensing categories, 8

licensing examples, 89

resources for information, 9

terminology, 8

version control, 147

choosing Git repository host, 156–157

comparing files, 173177

configuring Git, 157160, 161162

connecting to repositories, 186187

first generation software, 149

Git branches, 169171

Git stages, 155156

git status command, 162165

ignoring files, 166167

installing Git, 154155

managing repositories, 183184

merging files, 178182

multiple file locations, 165166

patching, 187

removing files, 168169

resources for information, 162

retrieving content from remote repository, 184186

second generation software, 149151

third generation software, 151154

special purpose licenses, 8

special variables in Perl, 124

splice statement, 123

square brackets ([]) as wildcard, 39

SSH, connecting to repositories, 186187

ssh-agent, 186

stages (Git), 155156

staging area (Git), 156

Stallman, Richard, 6

standard licenses, 8

static library calls, 139

stderr (standard error), 41

redirecting, 4243

stdin (standard input), 41

redirecting, 4344

stdout (standard output), 41

redirecting, 4142

strict permissiveness, 8

string comparisons in Perl, 127

string variables, 133134

strong copyleft, 8

structured languages, Python as, 131132. See also compiled languages

su command, 8485

sudo command, 84, 8586

switch statements in Perl, 126

switching branches (Git), 169170

symbolic method (changing permissions), 5859

system administration

disk usage, displaying, 8688

groups

explained, 93

managing, 9394

root user

accessing, 8486

logging in directly, 83

software

installing, 9091

listing and finding, 8990

managing, 88

removing, 91

user accounts, 91

adding, 9192

deleting, 93

modifying, 92

system libraries, 139142

managing, 140141

viewing, 142

T

tail command, 51

tar command, 6162

Tcl/Tk, 104105

terminal windows, 21

test command, 113115

text

finding in vi editor, 75

replacing in vi editor, 7576

text editors. See editors

third generation version control software, 151154

/tmp directory, 30

touch command, 38

tuples, 135

two right arrow (2>) in stderr redirection, 4243

U

u command, 73

undoing actions (vi editor), 73

unless statement in Perl, 125

unshift statement, 123

unstructured languages, Perl as, 119

until loops

in bash shell scripting, 115

in Perl, 125

user accounts, 91

adding, 9192

deleting, 93

modifying, 92

user interaction in bash shell scripting, 117118

useradd command, 91

userdel command, 93

usermod command, 92, 93

/usr/bin directory, 30

/usr/sbin directory, 30

/usr/share/doc directory, 27

V

variables

environment, 56

in Perl, 122124

positional parameters, 112

private, 129

in Python, 133136

quoting, 114

shell, 5556

version control, 147

first generation software, 149

Git

branches, 169171

choosing repository host, 156157

comparing files, 173177

configuring, 157160, 161162

connecting to repositories, 186187

git status command, 162165

ignoring files, 166167

installing, 154155

managing repositories, 183184

merging files, 178182

multiple file locations, 165166

patching, 187

removing files, 168169

resources for information, 162

retrieving content from remote repository, 184186

stages, 155156

second generation software, 149151

third generation software, 151154

vi editor

benefits of, 68

copying in, 73

deleting in, 74

documentation, 7779

finding text, 75

history of, 6768

insert mode, 6970

movement commands, 7172

pasting in, 74

quitting

and saving, 7677

without saving, 73, 77

repeater modifiers, 72

replacing text, 7576

undoing actions, 73

viewing

files, 4852

cat command, 4950

file command, 4849

head command, 51

less command, 5051

more command, 5051

tail command, 51

wc command, 5152

permissions, 57

system libraries, 142

vim editor, 6869

auto indentation, 132

vimdiff tool, 181182

vimtutor command, 79

visudo command, 86

W

W command, 71

w command, 71

Wall, Larry, 130

wc command, 5152

weak copyleft, 8

websites. See resources for information

while loops

in bash shell scripting, 115, 116

in Perl, 125

in Python, 136

white space, comparing files, 175176

wildcards, 3840

working area (Git), 156

working directory, 31

write method, 137

X

X command, 74

x command, 74

xG command, 72

xman command, 26

Y

y$ command, 73

yanking, 73

yG command, 73

yum command, 88

yum install command, 90

yum list installed command, 89

yum search command, 89

yw command, 73

yy command, 73

Z

zero (0) command, 71

zypper command, 88

zypper install command, 91

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.25.174