Emil Berg
d2549128c7
Fix spelling errors
...
Signed-off-by: Emil Berg <emil.berg@ericsson.com>
2022-05-04 07:50:27 +02:00
Страхиња Радић
bd9a732dba
Correct the description of Esc + c (Alt+c)
...
Signed-off-by: Страхиња Радић <contact@strahinja.org>
2022-05-04 07:47:31 +02:00
Nate Eagleson
c136e0f36f
Fix typo in README.md (singer -> single)
2022-05-03 21:45:55 -04:00
O
8ab7cf7a6d
Simplify glob expression
...
Signed-off-by: O <herrcykel@users.noreply.github.com>
2022-05-03 22:15:57 +02:00
Linus G Thiel
a97dcf2a3b
Use equivalent regex with PCRE
...
Use the equivalent regex with PCRE.
`[0-9]*` (and `\d*`) will output each integer, e.g.:
```bash
echo 17 | grep -o '[0-9]*'
```
Whereas `\d` will split it into digits, e.g.:
```bash
echo 17 | grep -oP '\d'
```
Signed-off-by: Linus G Thiel <linus@yesbabyyes.se>
2022-05-03 22:02:09 +02:00
Linus G Thiel
0f5fa26f06
Use correct quoting
...
Unquote the sed expression.
Signed-off-by: Linus G Thiel <linus@yesbabyyes.se>
2022-05-03 22:01:42 +02:00
Страхиња Радић
8dcfa4904b
Correct the description of Esc + c (Alt+c)
...
Signed-off-by: Страхиња Радић <contact@strahinja.org>
2022-01-26 18:17:03 +01:00
valerio\new
81ec32bfb9
Swap * and ? in bash globbing sections to match with correct comments
...
Signed-off-by: valerionew <valerionappi995@gmail.com>
2021-07-01 15:05:55 +02:00
Bonnie I-Man Ng
954f42c06a
fixed typo in file name
...
xargs using With sed
2021-05-16 16:17:31 +08:00
Ward
26db64f1b2
Add deactivate command
...
Signed-off-by: Ward <WardMaes@users.noreply.github.com>
2021-04-11 11:40:52 +02:00
onceupon
f1e9f30e78
+ find 1. Recursively count all the files in a directory
...
+ Condition and loop
1. Using test command, to test if the length of variable is nonzero
+ Others
1. Create a screen and name it 'test'
+ Time
1. Get the seconds since epoch (Jan 1 1970) for a given date (e.g Mar 16
2021)
2. Convert the number of seconds since epoch back to date
+ fix some markdown syntax issue
2021-03-16 22:10:49 +08:00
onceupon
093edef55a
+ time
...
returns the current time with nanoseconds.
2021-03-16 19:43:41 +08:00
Fazle Arefin
1e10f6f269
Use curl to unshorten a shortened URL
2020-08-29 21:22:59 +10:00
Fazle Arefin
4b2167dca3
Use curl to find out the http status code of a URL
2020-08-29 21:21:09 +10:00
bonnie
b396c45634
fix markdown
2020-07-19 23:42:01 +08:00
bonnie
f7850ce5c4
fix styling
2020-07-19 23:39:57 +08:00
bonnie
5e8aa86062
fix styling
2020-07-19 23:39:00 +08:00
bonnie
8cdf69d5c5
fix header
2020-07-19 23:36:11 +08:00
bonnie
e1a3a2a25d
update
...
- Get UUID of a disk (e.g. sdb)
2020-07-19 23:28:25 +08:00
bonnie
708ed78958
Networking
...
- To block port 80 (HTTP server) using iptables.
2020-07-19 23:18:25 +08:00
bonnie
c434421b77
System
...
- Check status of a process using PID
2020-07-19 23:13:06 +08:00
bonnie
d6a31731d7
System
...
- Set the default user and key for a host when using SSH
2020-07-19 23:06:03 +08:00
bonnie
27da2e897b
update
...
- Edit PS1 variable for bash
2020-07-19 22:58:30 +08:00
bonnie
ad6e6112f1
Find
...
- Find large files in the system (e.g. >4G)
2020-07-19 22:55:29 +08:00
bonnie
ddd2d3aa1f
Others
...
- List one file per line.
2020-07-19 22:52:32 +08:00
bonnie
f6be60886d
Condition and loop
...
- Make directories listed in a file
2020-07-19 22:45:24 +08:00
bonnie
cbe90cb99f
System
...
- Check for package update
2020-07-19 22:40:49 +08:00
bonnie
7aba786152
Networking
...
- Scan for open ports and OS and version detection
2020-07-19 22:38:34 +08:00
bonnie
7e9a091b3f
Networking
...
- Nc as a chat tool!
2020-07-19 22:32:08 +08:00
bonnie
39fbcae0b7
Others
...
- Zip the content of a directory without including the directory itself
2020-07-19 22:28:38 +08:00
bonnie
fe139c35d1
System
...
- Run yum update excluding a package
2020-07-19 22:18:48 +08:00
bonnie
e17743e9b9
edit
...
- Which ports are listening for TCP connections from the network
2020-07-19 22:16:45 +08:00
bonnie
3d6f8bcda1
Time
...
- Print date with formatting
2020-07-19 22:14:19 +08:00
bonnie
8e6a0f8eb9
Networking
...
- Perform network throughput tests
2020-07-19 22:12:40 +08:00
bonnie
8ed1acc61b
System
...
- Work with yum history
2020-07-19 21:40:03 +08:00
bonnie
3571593f1b
update
...
- Get DNS TXT record a of domain
2020-07-19 21:28:12 +08:00
bonnie
ea0d9bbd5b
Networking
...
- Get DNS TXT record a of domain
2020-07-19 21:25:51 +08:00
bonnie
46bda81c1a
Networking
...
- resolve a domain to IP address
2020-07-19 21:22:40 +08:00
bonnie
d7a768c446
rearrange orders
2020-07-19 21:15:06 +08:00
bonnie
6c083c518e
Data wrangling
...
- Delete all non-printing characters
2020-07-19 21:13:37 +08:00
bonnie
0df09b76c3
Networking
...
- Look up website information (e.g. name server), searches for an object
in a RFC 3912 database.
2020-07-19 20:47:49 +08:00
bonnie
640fb02686
edit
...
- List only directory
2020-07-19 20:43:22 +08:00
bonnie
5f04d6349c
Time
...
- Print date in %Y-%m-%d
2020-07-19 20:36:59 +08:00
bonnie
de26eeae47
update intro
2020-07-19 00:08:43 +08:00
bonnie
65e0abdff5
lint
2020-07-19 00:02:03 +08:00
bonnie
4b6247a712
Xargs
...
- Prompt commands before running commands
2020-07-18 23:48:32 +08:00
bonnie
328bd53614
Networking
...
- Check connection to host
2020-07-18 23:42:09 +08:00
bonnie
8b0d9aa44a
Networking
...
- Print the route packets trace to network host
2020-07-18 23:38:19 +08:00
bonnie
5b12320bc9
Networking
...
- Send a ping with a limited TTL to 10
2020-07-18 23:17:25 +08:00
bonnie
61d2422c53
Networking
...
- Check if a host is up and scan for open ports, also skip host
discovery.
2020-07-18 23:02:20 +08:00
bonnie
0aef9e7537
System
...
- Reading from journal file
2020-07-18 22:53:12 +08:00
bonnie
fdae9e9013
System section
...
- Performance monitoring tool - sar
2020-07-18 22:50:56 +08:00
bonnie
7857f80844
update "Find empty (0 byte) files"
2020-07-18 22:37:25 +08:00
Fazle Arefin
77c45a8784
Use find to find and delete empty files
2020-05-24 00:12:17 +10:00
bonnie
abed667be3
add to "time"
...
- sleep a random duration
2020-02-15 23:53:37 +08:00
bonnie
4d017c2d4d
add "system" and "other" commands:
...
- auditctl
- df
- identify
2020-02-15 23:32:16 +08:00
bonnie
30e7fd0280
add fallocate command to "Others"
2020-01-10 01:05:47 +08:00
bonnie
6e8910bdd4
add SSH Agent Forwarding to "System"
2020-01-10 00:58:15 +08:00
bonnie
d7b5a2c2d9
fix missing quotes
2020-01-03 00:16:43 +08:00
bonnie
a24037ba8a
Add "networking" and "server" commands:
...
- SELinux statux
- resolve domain to IP
- show SSL of a domain
2020-01-03 00:14:40 +08:00
bonnie
f02230af71
Command for generating an UUID
2019-11-04 23:01:14 +08:00
bonnie
00403b5101
add ssh commands to 'System'
2019-11-04 00:08:19 +08:00
ivothgle
8848b16b80
Update http to https
...
Replace safer https to avoid hijacking on some networks
2019-10-27 18:05:19 +08:00
bonnie
b9a7d4bbed
Add commands for 'others'
...
- look
- cal
- Forces applications to use the default language for output
- add some output examples
2019-10-24 22:19:51 +08:00
Bonnie I-Man Ng
3ca70751ab
add command to 'system' section
...
printing last reboot history
2019-10-24 20:58:55 +08:00
bonnie
b26a489a1a
Add new 'Data wrangling' section
...
- Move some 'Others' commands to a new 'Data wrangling' section, which contains bash one-liners for parsing data and files.
- Remove some repeated commands
- add detailed description for some commands
2019-10-22 00:07:26 +08:00
Bonnie I-Man Ng
67a9837f58
more description on xargs show limits
...
add output form the command `xargs --show-limits`
2019-10-20 00:26:26 +08:00
Bonnie I-Man Ng
e4d4083a27
edit introduction, rearrange commands
2019-10-20 00:15:38 +08:00
Bonnie I-Man Ng
ca02a5bccd
fix typo
2019-10-18 18:24:12 +08:00
Bonnie I-Man Ng
bd4f9c4b0e
fix typo
2019-10-18 18:23:26 +08:00
Bonnie I-Man Ng
88c21b27d6
add commands for 'others' section
...
bash auto-complete, fc
2019-10-18 18:22:19 +08:00
Simon Egersand
3f0f874b2c
Spelling fixes
...
Signed-off-by: Simon Egersand <s.egersand@gmail.com>
2019-09-29 14:06:05 +02:00
Simon Egersand
c44a68b096
Give additional context for bash tip
...
Signed-off-by: Simon Egersand <s.egersand@gmail.com>
2019-09-29 14:06:05 +02:00
Simon Egersand
3745cd6371
Remove whitespace characters
...
Don't worry I didn't do this by hand
Signed-off-by: Simon Egersand <s.egersand@gmail.com>
2019-09-29 14:06:05 +02:00
Bonnie I-Man Ng
816dfa96f5
add command for 'system'
...
Follow the most recent logs
2019-09-26 22:02:58 +08:00
Bonnie I-Man Ng
dbd01d0d40
add 'System' command
...
add pgrep for checking whether a process is running
2019-09-12 10:20:31 +08:00
Bonnie I-Man Ng
e24959113a
add commands in 'Other'
...
Repeat printing string n times
2019-09-06 18:08:52 +08:00
Bonnie I-Man Ng
b6997413d3
update introduction
2019-09-04 16:32:10 +08:00
Bonnie I-Man Ng
3bab1594ae
add command to Random section
...
Random generate password (e.g. generate 5 password each of length 13)
2019-08-15 18:38:57 +08:00
Bonnie I-Man Ng
055bbc8790
add to "variable" section
...
eval command to expand and execute variables
2019-07-10 16:40:14 +08:00
Bonnie I-Man Ng
0f1f62f507
add 'system' section
...
1. Eliminate the zombie
2. Show memory usage
2019-07-09 10:49:04 +08:00
Bonnie I-Man Ng
ef9141b0a3
add to 'download'
...
- add 'Follow any redirect until it reaches the final destination'
- remove a command for installing python dependencies.
2019-07-02 15:30:21 +08:00
Bonnie I-Man Ng
554ac88321
add to others
...
Do not echo the trailing newline
2019-07-02 15:09:38 +08:00
Bonnie I-Man Ng
85f342fb20
add to 'Others'
...
Encode strings as Base64 strings
2019-07-02 15:03:47 +08:00
Bonnie I-Man Ng
931dc30a41
add some common environment variables
2019-06-11 14:22:34 +08:00
Dimitris
7ce55e3e72
add clear trick
...
Signed-off-by: dimisjim <dimitris.moraitidis@gmail.com>
2019-06-07 14:21:39 +03:00
Emile
b1cced62ac
added the python3 way to the python server
...
Signed-off-by: Emile <hanemile@protonmail.com>
2019-06-02 12:34:06 +02:00
Bonnie I-Man Ng
83cd707f93
add others
...
Run multiple commands in background
2019-05-31 18:23:54 +08:00
Bonnie I-Man Ng
d8fed85f58
edit description for 'shopt' command
2019-05-17 15:59:33 +08:00
Bonnie I-Man Ng
834ff1bfbb
fix 'back to top' link
2019-05-16 23:53:13 +08:00
Bonnie I-Man Ng
2bc18431d9
fix 'back to top' link
2019-05-16 23:50:25 +08:00
Bonnie I-Man Ng
f5f7b2bd55
Add another example for tree
...
set level directories deep
2019-05-16 15:50:37 +08:00
Bonnie I-Man Ng
7910b94f25
Add command for system
...
Display file status (access, modify and change time) of a file using `stat`
2019-05-16 12:02:20 +08:00
Bonnie I-Man Ng
a3f07d0c75
fix typo
2019-05-16 11:52:54 +08:00
Bonnie I-Man Ng
75d512518e
Add commands for 'system' section
...
New commands:
lsusb, lsmod, rmmod, modprobe, pstree, dmesg, chkconfig, systemctl, partprobe, mount, idconfig, idd, chsh, unalias, shopt, chroot, nohup, uptime, nice
2019-05-16 11:51:30 +08:00
Bonnie I-Man Ng
719fdbb5eb
Update README.md
2019-05-15 01:40:01 +08:00
Bonnie I-Man Ng
7d539c3c1d
Update README.md
2019-05-15 01:39:35 +08:00
Bonnie I-Man Ng
2350f389ba
Update README.md
2019-05-15 01:39:23 +08:00
Bonnie I-Man Ng
48ad4c86ee
rename repo
2019-05-15 00:52:38 +08:00
Bonnie I-Man Ng
f86d9ebf36
[hot fix] comment out descriptions
2019-05-14 17:27:13 +08:00