Commit Graph

473 Commits

Author SHA1 Message Date
onceupon
46684db867
add other
Reverse the result from `uniq -c`
2018-12-14 10:05:24 +08:00
onceupon
6e66fd9ce9
add diff comment
Compare two files, strip trailing carriage return/ nextline
2018-11-22 10:01:18 +08:00
onceupon
9856d4c685
add sys admin
list all enable services
2018-11-16 16:34:57 +08:00
onceupon
0b185df5d5
add tmux commands 2018-11-08 15:00:32 +08:00
onceupon
8f3874d158
edit command for 'list information about NIC'
should use lspci instead of lsscsi
2018-11-02 14:41:40 +08:00
onceupon
c05d867f88
edit loop section
add more examples for 'if'
2018-10-29 17:08:45 +08:00
onceupon
8309dbb316
edit ending wording 2018-10-25 11:45:29 +08:00
onceupon
1dc726c2a2
add others
tac a file
2018-10-25 11:40:42 +08:00
onceupon
6ee16107fc
Update README.md 2018-10-25 01:30:35 +08:00
onceupon
da2f7b910e
add system
Stop tailing a file on program terminate
2018-10-25 01:29:49 +08:00
onceupon
1e9abe3dfd
add some old commands when revising LPIC 1
wonder if anyone will read this commit messages.
2018-10-25 00:42:42 +08:00
onceupon
b13840742e
update grep section
more detail on regex
2018-10-24 18:11:42 +08:00
onceupon
9c21d7c3f5
Update README.md 2018-10-24 17:25:32 +08:00
onceupon
89eb5d75f4
add grep
type of grep
2018-10-24 17:23:35 +08:00
onceupon
5a9b0c3372
add terminal tricks
run last command
2018-10-24 09:44:11 +08:00
onceupon
0bde7e7ec2
Update README.md 2018-10-24 01:38:36 +08:00
onceupon
8d8a350dcf
Create 'Ctrl' section
collected and summarized some Ctrl command line tricks
2018-10-24 01:37:27 +08:00
onceupon
315debd7a2
add item tos 2018-10-22 11:00:12 +08:00
onceupon
d06b00f353
Insert items for the 'system' section
Add items for finding out last and current login users.
2018-10-22 10:52:49 +08:00
onceupon
1322960433
Update README.md 2018-09-13 16:27:10 +08:00
onceupon
92b6200408
add tmux scroll 2018-09-13 16:26:09 +08:00
onceupon
ba93ba5b86
Update README.md 2018-09-06 14:31:16 +08:00
onceupon
f3779013a2
add grep
grep ip address
2018-09-06 14:31:00 +08:00
onceupon
ba9a274113
add sed
add string to beginning of file
2018-08-21 14:04:03 +08:00
onceupon
c94a0b8a18
add other
right align
2018-06-25 17:31:15 +08:00
onceupon
30eb530c08
add screen 2018-06-20 10:59:08 +08:00
onceupon
ca650f4463
add others
sort a file by column and keep the original order
2018-05-31 16:31:27 +08:00
onceupon
3842241d25
add if loop 2018-05-31 16:07:50 +08:00
onceupon
e5e610f319
add sed and others 2018-05-31 10:55:20 +08:00
onceupon
867908d1d4
Update README.md 2018-05-28 10:38:35 +08:00
onceupon
ad2e29fcdb
add kill all process of a program 2018-05-28 10:15:48 +08:00
onceupon
ee27648b74
add other
add file extension to all files using rename
2018-05-25 17:25:10 +08:00
onceupon
cdc039aca4
edit typo 2018-05-25 17:19:22 +08:00
onceupon
0e2fe403af
add other
edit history
2018-05-25 15:00:42 +08:00
onceupon
bbe62d8eee
edit tmux synchronize panes 2018-05-04 17:49:07 +08:00
onceupon
2bc3257c30
add tmux panes 2018-05-04 17:46:44 +08:00
onceupon
527181159a
Update README.md 2018-04-27 17:21:05 +08:00
onceupon
1c412a14da
Update README.md 2018-04-27 17:01:52 +08:00
onceupon
a5d0f4b630
edit benchmark tools 2018-04-27 17:01:11 +08:00
onceupon
7991dd6f4c
add sys
benchmarking tools
2018-04-27 16:09:36 +08:00
onceupon
1e95592878
edit at example 2018-04-18 11:30:24 +08:00
onceupon
8cf5c95495
add time section
add a new time section, there are moments that we wish to know and control the time for our commands
2018-04-18 11:19:40 +08:00
onceupon
cf0a127639
fix typo 2018-04-17 09:43:53 +08:00
onceupon
f59986e0c0
add loop
switch loop
2018-04-12 14:49:54 +08:00
onceupon
2d890d0538
add variable
remove the first or last string from variable
2018-04-12 14:34:29 +08:00
onceupon
54a00b2569
add variable
get the first character of the variable
2018-04-12 14:23:32 +08:00
onceupon
283d52b361
Update README.md 2018-04-12 14:16:31 +08:00
onceupon
a9adb3d7b7
edit 'back to top' 2018-04-12 14:15:22 +08:00
onceupon
c29f247fb8
Update README.md 2018-04-12 14:13:04 +08:00
onceupon
394ef7c772
add variable
remove first leading zero
2018-04-12 14:05:49 +08:00
onceupon
99b7c30807
add sed
Remove lines whose nth character not equal to a value
2018-04-11 10:00:37 +08:00
onceupon
d21abd8ddc
Update README.md 2018-04-10 16:34:59 +08:00
onceupon
430cfb08ef
add variable
get the length of variable
2018-04-10 14:57:51 +08:00
onceupon
b310c4acbe
add working with json data
jq command
2018-04-10 14:38:09 +08:00
onceupon
aea54c126c
Update README.md 2018-04-10 10:15:04 +08:00
onceupon
cfa3d59e92
add variable section
bash variable can be frustrating
2018-04-10 10:10:26 +08:00
onceupon
6a1ec40741
add grep
grep string starting with a string
2018-03-31 09:24:45 +08:00
onceupon
ac371598b8
Update README.md 2018-03-26 09:55:54 +08:00
onceupon
ffc0c45075
Update README.md 2018-03-07 11:16:18 +08:00
onceupon
35e7587b05
Update README.md 2018-03-07 11:14:50 +08:00
onceupon
011ffc4de6
add other
set up virtualenv(sandbox) for python
2018-03-07 11:06:50 +08:00
onceupon
518a3079bc
Update README.md 2018-02-22 11:07:01 +08:00
onceupon
36baba224d
Update README.md 2018-02-12 14:56:35 +08:00
onceupon
b1a605f135
Add hardware section
get CPU, memory, hard disk, NIC, temperature information
2018-02-12 14:53:34 +08:00
onceupon
6e6d0b9f66
add awk
remove last column
2018-02-09 10:36:52 +08:00
onceupon
2e1da343d6
Update README.md 2018-02-08 10:06:43 +08:00
onceupon
1df734925a
Update README.md 2018-02-08 10:05:09 +08:00
onceupon
29c4d7dfaa
Update README.md 2018-02-08 10:00:41 +08:00
onceupon
054b8b6a2a
add system
Get process ID of a process (e.g. sublime_text)
2018-02-08 10:00:06 +08:00
onceupon
c839834f35
Update README.md 2018-02-07 18:24:07 +08:00
onceupon
3e87339464
add others
get NIC information
2018-02-07 18:23:31 +08:00
onceupon
18d0c842ae
add dmidecode type table 2018-01-25 11:27:35 +08:00
onceupon
e18f742e17
add unzip 2018-01-23 16:41:00 +08:00
onceupon
981208c791
add other
tree
2018-01-17 13:36:56 +08:00
onceupon
723ff2314a
Update README.md 2018-01-10 09:48:50 +08:00
onceupon
7ae9dbbce9
edit all comments to start with '#' instead of '//' 2018-01-10 09:47:26 +08:00
onceupon
478751bba0
add others: Create a large amount of dummy files 2018-01-03 13:56:20 +08:00
onceupon
df9707071d
Update README.md 2018-01-03 12:21:42 +08:00
onceupon
bf4af75707
add others
Capture/record/save terminal output (capture everything you type and output)
2018-01-03 12:20:55 +08:00
onceupon
067f5f2a94
Update README.md 2018-01-02 10:59:20 +08:00
onceupon
7f8ddc1ce8
add others- list only directory 2018-01-02 10:17:50 +08:00
onceupon
099fe975c0
add sed
Substitution with wildcard (e.g. replace a line start with aaa= by aaa=/my/new/path)
2017-12-29 17:30:49 +08:00
onceupon
5a34554eea
Update README.md 2017-12-29 10:14:00 +08:00
onceupon
a2d0bf805a
Send command to all panes in tmux: 2017-12-27 11:07:20 +08:00
onceupon
1e3518082c
Update README.md 2017-12-14 14:48:35 +08:00
onceupon
7742c3b72f
add logout timer 2017-12-14 09:43:55 +08:00
onceupon
5f3e48109e
Update README.md 2017-12-12 12:07:02 +08:00
onceupon
9268b08e4f
add system: query for hardware device status
memory and segate disks
2017-12-12 12:05:18 +08:00
onceupon
08bf087b3d
Update README.md 2017-12-12 10:59:35 +08:00
onceupon
83a7ff99be
Update README.md 2017-12-12 10:58:22 +08:00
onceupon
722c78f339
Add to server section
Create a ssh tunnel
Locate and remove a package
2017-12-12 10:55:08 +08:00
onceupon
dab5b43c4f
Create a UEFI Bootable USB drive
(e.g. /dev/sdc1)
2017-12-07 19:34:09 +08:00
onceupon
e2c847386d
Increase/ resize root partition
(root partition is an LVM logical volume)
2017-12-07 15:32:32 +08:00
onceupon
a2702989e6
add grep
Grep lines not begin with string (e.g. #)
2017-11-29 16:31:10 +08:00
onceupon
204c1bdb7a
add others(pdf to txt)
pdf to txt
2017-11-29 14:00:46 +08:00
onceupon
d9742d8586
Update README.md 2017-11-24 16:50:22 +08:00
onceupon
7d377a534b
Update README.md 2017-11-23 10:44:19 +08:00
onceupon
400b96d4d8
Update README.md 2017-11-23 10:43:28 +08:00
onceupon
5c8c194814
Update README.md 2017-11-23 10:43:12 +08:00
onceupon
a9a0195a85
Update README.md 2017-11-23 10:42:50 +08:00
onceupon
4c4c880a75
add other: wait
wait for a pid (job) to complete
2017-11-23 10:40:30 +08:00
onceupon
b5f01625ac
add system
remove unnecessary files to clean your server
2017-11-14 15:44:15 +08:00
onceupon
42df407113
add grep only integers 2017-11-01 17:59:03 +08:00
onceupon
4dfbacff7b
add ntp 2017-10-31 10:15:07 +08:00
onceupon
2461aa5048 add variable replacement 2017-10-27 11:13:54 +08:00
onceupon
4b1d481eb8 add system and while
While loop, keep checking a running process (e.g. perl) and start another new process (e.g. python) immetiately after it.
get pid
2017-10-26 18:29:14 +08:00
onceupon
1dece9ec82 Grep variables with space within it
Grep variables with space within it
2017-10-26 16:20:59 +08:00
onceupon
afc0010830 edit remove lines with string
add case insensitive
2017-10-26 16:14:20 +08:00
onceupon
646caf4def edit increment 2017-10-26 12:01:20 +08:00
onceupon
2226834210 add loop
if else Test if file exist
2017-10-25 17:59:22 +08:00
onceupon
81b3375b2f Update README.md 2017-10-25 14:44:16 +08:00
onceupon
41f898aa95 add loop
for loop, print a file line by line
2017-10-25 14:43:51 +08:00
onceupon
945fce1dd6 add system
##### change network maximum transmission unit (mtu) (e.g. change to 9000)
2017-10-25 11:21:15 +08:00
onceupon
00dc05870e add tmux and screen detach 2017-10-24 13:46:22 +08:00
onceupon
5bd56e6440 add system
using telnet to test open ports
2017-10-19 14:48:57 +08:00
onceupon
52c0337911 add others
pass password to ssh
2017-10-19 13:38:40 +08:00
onceupon
6b7d0d3edb add grep and xargs 2017-10-11 15:49:28 +08:00
onceupon
b7b1a844ff Update README.md 2017-10-11 11:02:21 +08:00
onceupon
f809db9df4 add system
list hardware details
2017-10-06 15:48:47 +08:00
onceupon
dc9cd819f6 edit mail 2017-10-05 11:20:22 +08:00
onceupon
07f29055e9 add others
cut the last column
2017-10-02 12:06:47 +08:00
onceupon
9ff923bd6c add others
add line number (nl)
2017-10-02 12:05:33 +08:00
onceupon
e43853e465 add sed
remove lines
2017-10-02 10:38:44 +08:00
onceupon
55e4c097c7 add sed 2017-09-28 18:10:55 +08:00
onceupon
0947dbc550 Update README.md 2017-09-28 13:40:02 +08:00
onceupon
5e1c830b2e Update README.md 2017-09-28 13:39:33 +08:00
onceupon
1d98000d06 Update README.md 2017-09-28 13:37:46 +08:00
onceupon
b932ec378e Update README.md 2017-09-28 13:36:01 +08:00
onceupon
c704f484a2 add screen and tmux 2017-09-28 13:34:16 +08:00
onceupon
b8350d6d62 Update README.md 2017-09-28 13:30:05 +08:00
onceupon
25c010a353 add others
sql-like q,screen, tmux
2017-09-28 13:28:23 +08:00
onceupon
63e19c2d10 Update README.md 2017-09-26 09:16:16 +08:00
onceupon
f3b131f90f add loop and others
Press any key to continue
2017-09-26 09:12:22 +08:00
onceupon
65e9439a8f add system
when sound not working
2017-09-20 15:33:16 +08:00
onceupon
63201adc86 add system
Check which file make the device busy on umount
2017-09-15 11:20:26 +08:00
onceupon
821380ddc3 Update README.md 2017-09-15 11:07:16 +08:00
onceupon
2e0006ed3f Update README.md 2017-09-15 10:55:22 +08:00
onceupon
b754d30235 Update README.md 2017-09-15 10:41:34 +08:00
onceupon
36469b12db Update README.md 2017-09-15 10:40:51 +08:00
onceupon
d28191ddd2 Update README.md 2017-09-14 12:20:58 +08:00
onceupon
31a06f9ad8 Update README.md 2017-09-12 17:39:40 +08:00
onceupon
a376d94fea Add Math and others 2017-09-12 17:38:43 +08:00
onceupon
ad8babdbc9 add other
Keep /repeatedly executing the same command (e.g Repeat 'wc -l filename' every 1 second),
2017-09-12 16:48:24 +08:00
onceupon
a493c719a9 add others
Cat to a file
2017-09-08 09:22:48 +08:00
onceupon
9bcae61269 edit intro 2017-09-01 10:53:10 +08:00
onceupon
a19220e4cc edit intro 2017-09-01 10:51:53 +08:00
onceupon
748b787016 add tutorial links
Tutorial for setting up your own DNS server and for creating a simple daemon
2017-09-01 10:48:00 +08:00
onceupon
3137b1ebd5 Update README.md 2017-09-01 10:46:34 +08:00
onceupon
04903e7fc0 Update README.md 2017-08-28 14:59:09 +08:00
onceupon
a1309864e4 update change hostname 2017-08-28 10:58:22 +08:00
onceupon
745649866d edit hostname 2017-08-28 10:19:46 +08:00
onceupon
2c66e33ec0 edit change hostname 2017-08-28 09:51:29 +08:00
onceupon
5f3a39de94 Update README.md 2017-08-23 17:23:15 +08:00
onceupon
e70412bb65 Update README.md 2017-08-23 17:22:38 +08:00
onceupon
9769c4b96a Update README.md 2017-08-23 17:21:56 +08:00
onceupon
adde3a8f9e Update README.md 2017-08-23 17:20:31 +08:00
onceupon
8a1ea55ec1 add system
List installed packages
2017-08-23 17:17:47 +08:00
onceupon
77b6834751 add system
sudo hostname your-new-name
2017-08-23 08:53:20 +08:00
onceupon
f8e1e7abdb add others
Create dummy file of certain size instantly
2017-08-23 08:50:24 +08:00
onceupon
00ccd6bc43 Update README.md 2017-08-16 14:28:50 +08:00
onceupon
3a0d6709f4 Update README.md 2017-08-16 14:20:57 +08:00
onceupon
055ee3c274 add system
Removing old linux kernels
2017-06-30 17:26:26 +08:00
onceupon
5ca3fb531b Update README.md 2017-06-28 20:28:41 +08:00
onceupon
99dd68433d add others
output a y/n repeatedly until killed
2017-06-28 20:27:43 +08:00
onceupon
9615774289 edit 'Echo series of random numbers between a range' 2017-06-28 12:31:30 +08:00
onceupon
cd6d07c704 add system
pip install python package without root
2017-06-26 17:29:35 +08:00
onceupon
6b27d3bd53 add awk
Subtract previous row values
2017-06-16 17:53:05 +08:00
onceupon
2a299e123e add system
Add user to a group (e.g add user 'nice' to the group 'docker', so that he can run docker without sudo)
2017-06-16 17:29:19 +08:00
onceupon
0a13585697 Update README.md 2017-06-16 17:01:53 +08:00
onceupon
1740c1148f add others
unzip tar.bz2 file (e.g. file.tar.bz2)
2017-06-16 17:01:23 +08:00
onceupon
cca8010a69 Create README.md 2017-06-09 16:53:36 +08:00
onceupon
d858cf7c88 Create README.md 2017-06-09 16:21:06 +08:00
onceupon
e664f45ef9 Create README.md 2017-06-09 16:19:42 +08:00
onceupon
e62be0846d Create README.md 2017-06-09 16:19:02 +08:00
onceupon
b485d520be add others
Upload a file to web and download (https://transfer.sh/)
2017-06-09 16:18:17 +08:00
onceupon
b24f46fe6b new xwindow section 2017-06-09 12:26:34 +08:00
onceupon
b64da48bd1 add others
use google-chrome browser from ssh server
2017-06-09 12:18:31 +08:00
onceupon
cd6898a686 add system
find out who has logged in on your system
2017-06-08 17:42:18 +08:00
onceupon
97ba64e7de Update README.md 2017-05-16 15:52:33 +08:00
onceupon
8b0940895b edit awk
print line number and number of characters on each line
2017-05-10 19:22:41 +08:00
onceupon
432ef68cae Update README.md 2017-05-10 16:20:10 +08:00
onceupon
7171f58f7a add sed
add newline to the end
2017-05-10 16:18:56 +08:00
onceupon
5c8c94171c add others
clear the contents of a file
2017-04-17 12:02:43 +08:00
onceupon
6e6112f324 add other
to uppercase/lowercase
2017-04-14 17:19:59 +08:00
onceupon
e9789c24aa Update README.md 2017-03-29 17:58:50 +08:00
onceupon
71493924ad Update README.md 2017-03-29 17:54:35 +08:00
onceupon
743db35c52 Update README.md 2017-03-29 17:49:41 +08:00
onceupon
24f05d05cd add handy environment variables 2017-03-29 17:48:14 +08:00
onceupon
bd692c5cce edit format 2017-03-29 16:52:59 +08:00
onceupon
1c495fe1eb Update README.md 2017-03-29 16:49:08 +08:00
onceupon
17f691fcf0 add other
add one to variable/increment a numeric variable
2017-02-17 11:25:34 +08:00
onceupon
0c57242c01 add other
cut and get last column
2017-02-16 20:25:13 +08:00
onceupon
f8b83766ca add sed
insert character at specified position of file
2017-02-13 16:15:38 +08:00
onceupon
ffee25e06b add sed
#####remove last character of file
2017-02-10 15:00:54 +08:00
onceupon
b130948988 Update README.md 2017-02-07 14:39:04 +08:00
onceupon
ac218c0eb2 Update README.md 2017-01-23 18:19:41 +08:00
onceupon
095f9fe841 Update README.md 2017-01-23 18:18:38 +08:00
onceupon
f52b6a8947 add server
set gedit preference on server
2017-01-23 18:17:35 +08:00
onceupon
8d22beb643 update enable X11 forwarding 2017-01-23 18:15:01 +08:00
onceupon
0686889553 Update README.md 2017-01-23 14:28:46 +08:00
onceupon
aa9adef2e8 Update README.md 2017-01-23 14:28:03 +08:00
onceupon
969b95c4bf Update README.md 2017-01-23 14:27:30 +08:00
onceupon
8c8cd951eb add others
paste - -
2017-01-23 14:26:35 +08:00
onceupon
ff846acbea Update README.md 2017-01-19 14:24:36 +08:00
onceupon
2134776d15 add others
open PDF file from ssh server
2017-01-19 14:23:52 +08:00
onceupon
9d2e98bf97 add others
Use gedit on server (GUI editor)
2017-01-19 11:46:02 +08:00
onceupon
c0619def87 add others
view first nth characters of a file
2017-01-18 17:52:44 +08:00
onceupon
f29105585c add system 2017-01-06 16:16:43 +08:00
onceupon
18c9655729 Update README.md 2017-01-06 15:08:36 +08:00
onceupon
7bca76e79c add system 2017-01-06 15:05:41 +08:00
onceupon
1317413b23 add server 2017-01-06 12:37:00 +08:00
onceupon
0cad5b8e82 Update README.md 2017-01-06 12:32:49 +08:00
onceupon
2bb7f437b3 add server 2017-01-06 12:32:31 +08:00
onceupon
7204588af5 Update README.md 2017-01-05 15:45:36 +08:00
onceupon
51ed9e01c9 add loop 2017-01-05 15:44:41 +08:00
onceupon
35663d37df add other 2017-01-05 15:41:58 +08:00
onceupon
5ee646115a add others 2016-11-07 15:21:55 +08:00
onceupon
073fa9d7af add sed wildcard 2016-10-13 17:57:34 +08:00
onceupon
188f621d1d add basename 2016-10-06 16:39:20 +08:00
onceupon
540c89273a add xargs grep 2016-09-29 17:17:45 +08:00
onceupon
aa54bddced add rename 2016-09-23 11:15:49 +08:00
onceupon
8f281f9527 add server 2016-09-10 17:46:30 +08:00
onceupon
ae0e1f8ca1 add server 2016-09-10 17:39:01 +08:00
onceupon
38a4b52d93 add sed 2016-09-09 18:14:09 +08:00
onceupon
3cee5bb2ce edit background 2016-09-08 17:31:55 +08:00
onceupon
0ac6121c66 edit introduction 2016-09-05 15:50:06 +08:00
onceupon
b21244ca49 add awk 2016-09-05 15:37:30 +08:00
onceupon
257008525c add grep 2016-09-05 15:26:20 +08:00
onceupon
258c11caa3 add system 2016-09-02 15:40:41 +08:00
onceupon
46a081753f add split 2016-09-02 11:56:37 +08:00
onceupon
1135f82bfa add sort row 2016-09-02 11:29:05 +08:00
onceupon
81bc838790 add awk, sed and system 2016-09-01 17:24:27 +08:00
onceupon
cd51d75f29 add others 2016-08-25 19:57:18 +08:00
onceupon
965f7bb22d add grep 2016-08-25 19:40:18 +08:00
onceupon
bf4104af92 Update README.md 2016-08-18 11:04:58 +08:00
onceupon
e7d3e325d2 add awk 2016-08-18 11:03:45 +08:00
onceupon
a8a00d052d add sed 2016-08-17 18:05:54 +08:00
onceupon
35656ea015 add sed 2016-07-27 10:34:04 +08:00
onceupon
12370acf8a add grep 2016-07-20 12:08:30 +08:00
onceupon
1441c484a4 add awk 2016-07-15 17:12:52 +08:00
onceupon
64086e080f add sed 2016-07-13 16:37:37 +08:00
onceupon
e69ac89075 add sed 2016-07-13 16:29:31 +08:00
onceupon
9dfff5b1fc Update README.md 2016-07-01 19:28:09 +08:00
onceupon
e523411146 change name 2016-07-01 18:59:40 +08:00
onceupon
49638ed26b edit 2016-07-01 18:54:39 +08:00
onceupon
06338138ca change style 2016-07-01 18:52:19 +08:00
onceupon
22274b268b add sed 2016-07-01 14:47:42 +08:00
onceupon
e49ae9a078 edit description 2016-06-28 11:02:58 +08:00
onceupon
24115b0b58 Update README.md 2016-06-28 10:59:23 +08:00
onceupon
528c924d0e add random 2016-06-27 13:54:48 +08:00