File tree 19 files changed +359
-359
lines changed
19 files changed +359
-359
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# For even more sanity, use Python.
14
14
15
- # #variables
15
+ # # variables
16
16
17
17
# same as c
18
18
22
22
# $\n: fields
23
23
# last field: $(NF-1)
24
24
25
- # #FS
25
+ # # FS
26
26
# field (column) separator
27
27
# FS=':' FS=/[[:space:]]/ -F'/[[:space:]]/'
28
28
# OFS: output field separator
40
40
41
41
# - if else for while: like C
42
42
43
- # #general syntax
43
+ # # general syntax
44
44
45
45
# A general awk program is of the type:
46
46
57
57
echo ' 0.5 0.5' | awk ' {print $1+$2}'
58
58
# 1
59
59
60
- # #string num conversion
60
+ # # string num conversion
61
61
62
62
awk ' BEGIN{print "1"+1}'
63
63
awk ' BEGIN{print " 1"+1}'
64
64
# 2
65
65
66
- # #print
66
+ # # print
67
67
68
68
awk ' BEGIN{print "a", 1}'
69
69
# 'a 1'
74
74
awk ' {print}'
75
75
# cat
76
76
77
- # #applications
77
+ # # applications
78
78
79
79
# Print second field of all entries if first field equals:
80
80
Original file line number Diff line number Diff line change 2
2
3
3
# Chat utilities, specially command line ones.
4
4
5
- # #mseg write wall
5
+ # # mseg write wall
6
6
7
7
# Write messages to other users on the system.
8
8
9
- # #mseg
9
+ # # mseg
10
10
11
11
# Enable/disable messages:
12
12
17
17
mseg
18
18
# y
19
19
20
- # #write
20
+ # # write
21
21
22
22
# Write to a user in a TTY:
23
23
34
34
h=
35
35
sudo write $h @$u tty2
36
36
37
- # #wall
37
+ # # wall
38
38
39
39
# Write to all:
40
40
57
57
# go to tty3
58
58
# your message is there!
59
59
60
- # #talk
60
+ # # talk
61
61
62
62
# Commandline chat program.
63
63
64
64
# POSIX.
65
65
66
66
sudo aptitude install -y talk
67
67
68
- # #IRC
68
+ # # IRC
69
69
70
70
# internet relay chat
71
71
83
83
84
84
# it is also possible to send files to people
85
85
86
- # #commands
86
+ # # commands
87
87
88
88
# intro: <http://www.irchelp.org/irchelp/irctutorial.html>
89
89
90
90
# full list: <http://en.wikipedia.org/wiki/List_of_Internet_Relay_Chat_commands>
91
91
92
92
# /connect <server>
93
93
94
- # #ubuntu channel
94
+ # # ubuntu channel
95
95
96
- # #register
96
+ # # register
97
97
98
98
xdotool type " /msg nickserv register $password $email "
99
99
100
- # #verify registration
100
+ # # verify registration
101
101
102
102
# go to your email and get the registration code
103
103
104
104
regcode=
105
105
xdotool type " /msg nickserv verify register $uname $regcode "
106
106
107
- # #clients
107
+ # # clients
108
108
109
- # #pidgin
109
+ # # pidgin
110
110
111
111
# good because integrates with other ims
112
112
113
- # #create account
113
+ # # create account
114
114
115
115
# irc server + username on that server == a pidgin account
116
116
117
117
# add account > irc
118
118
119
119
# enter server username and pass
120
120
121
- # #join/create channel:
121
+ # # join/create channel:
122
122
123
123
# an irc channel == a pidgin chat
124
124
133
133
134
134
# if you close the chat window, it will not be on your buddy list anymore
135
135
136
- # #add channel to buddy list permanently:
136
+ # # add channel to buddy list permanently:
137
137
138
138
# buddies > add a group. name it "irc".
139
139
140
140
# buddies > show > empty groups
141
141
142
142
# buddies > add a chat. choose type irc, server, channel.
143
143
144
- # #irssi
144
+ # # irssi
145
145
146
146
# ncurses
Original file line number Diff line number Diff line change 3
3
# The root of a process is a Linux concept: every process descriptor has a root field,
4
4
# and system calls issued from that process only look from under the root (known as `/` to that process).
5
5
6
- # #application
6
+ # # application
7
7
8
8
# You have a partition that contains a linux system,
9
9
# but for some reason you are unable to run it.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
- # #cut
3
+ # # cut
4
4
5
5
# POSIX 7: <http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cut.html#tag_20_28>
6
6
Original file line number Diff line number Diff line change 21
21
[ " $( a=' c' bash -c ' echo "$a"' ) " = ' c' ] || exit 1
22
22
[ " $a " = ' b' ] || exit 1
23
23
24
- # #i
24
+ # # i
25
25
26
26
# Run command in a clean environment without inheriting exports
27
27
# except those explicitly given.
Original file line number Diff line number Diff line change 9
9
10
10
[ ` eval echo a` = a ] || exit 1
11
11
12
- # #applications
12
+ # # applications
13
13
14
14
# Make varname from var>
15
15
Original file line number Diff line number Diff line change 14
14
15
15
# It is possible for example to open new tabs or toogle visibility from other shells.
16
16
17
- # #yakuake
17
+ # # yakuake
18
18
19
19
# KDE alternative.
20
20
Original file line number Diff line number Diff line change 10
10
# - ?: help
11
11
# - x: close help
12
12
13
- # #page
13
+ # # page
14
14
15
15
# - <space>: down one page. May change nodes.
16
16
# - <backspace>: up one page. May change nodes.
17
17
# - b, e: beginning/end of current node.
18
18
# - s, /: search string
19
19
# - {, }: repeat search back/forward
20
20
21
- # #menu
21
+ # # menu
22
22
23
23
# - <arrows>: move cursor
24
24
# - <enter>: go to link under cursor
28
28
# can tab complete.
29
29
# even without tab complete, goes to first match on enter.
30
30
31
- # #node
31
+ # # node
32
32
33
33
# - u: parent node
34
34
# - t: top node
37
37
# - l: go to last viewed node. can be used several times.
38
38
# - g: like m, but search all nodes
39
39
40
- # #search
40
+ # # search
41
41
42
42
# - /: regex
43
43
# - {: next match of previous search
Original file line number Diff line number Diff line change 10
10
11
11
jobs -p
12
12
13
- # #jobspecs
13
+ # # jobspecs
14
14
15
15
# Local job id, found by using <#jobs>
16
16
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # #in out
3
+ # # in out
4
4
5
5
# create `in`:
6
6
make change_in
@@ -13,7 +13,7 @@ make change_in
13
13
make out
14
14
make clean
15
15
16
- # #nodep
16
+ # # nodep
17
17
18
18
# runs:
19
19
make nodep
@@ -22,7 +22,7 @@ make change_nodep
22
22
make nodep
23
23
make clean
24
24
25
- # #phony
25
+ # # phony
26
26
27
27
# runs:
28
28
make phony
Original file line number Diff line number Diff line change 5
5
# POSIX 7 specifies only the option `-k` and nothing about pages,
6
6
# those are Linux concepts.
7
7
8
- # #pages
8
+ # # pages
9
9
10
10
# The manual is organized into 7 pages.
11
11
97
97
man 8 grub-install
98
98
man 8 mount
99
99
100
- # #GNU command line options
100
+ # # GNU command line options
101
101
102
102
# Exact search on title. Shows only first page found match:
103
103
119
119
120
120
# May be slow:
121
121
122
- # #--regex
122
+ # # --regex
123
123
124
124
# Whatever you were searching search with ERE now.
125
125
139
139
140
140
man -k .
141
141
142
- # #linux man-pages project
142
+ # # linux man-pages project
143
143
144
144
# <https://www.kernel.org/doc/man-pages/>
145
145
149
149
150
150
# It is not a part of the kernel tree, and does not seem to be mentioned in the LSB.
151
151
152
- # #whatis
152
+ # # whatis
153
153
154
154
# Non POSIX
155
155
156
156
# Show man short description of ls
157
157
158
158
whatis ls
159
159
160
- # #manpath
160
+ # # manpath
161
161
162
162
# Man search path
163
163
177
177
178
178
ls /usr/share/man/man1 | less
179
179
180
- # #GUI front-ends
180
+ # # GUI front-ends
181
181
182
182
# There is one single and drastic advantage to it:
183
183
# clickable references to other manpages
184
184
185
- # #yelp
185
+ # # yelp
186
186
187
187
# Ubuntu default documentation front-end. Also does other formats.
188
188
You can’t perform that action at this time.
0 commit comments