Skip to content

Commit 223883d

Browse files
committed
adding more information based on more research reading and testing
1 parent 272b6f0 commit 223883d

File tree

4 files changed

+96
-8
lines changed

4 files changed

+96
-8
lines changed

using-gnu-ld-linker.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,17 @@ My ld is GNU ld (GNU Binutils for Debian) 2.31.1.
5252

5353
## untested flags
5454

55-
ld -T used to specifiy the linker file used
56-
ld -o Specifies the name of the output file (executable or library) to be generated
57-
ld -l Links against the specified library, searching for it in the standard library directories.
58-
ld -pie Creates a position-independent executable (PIE), which can be loaded at any address in memory
59-
ld -u Prevents garbage collection of the specified external symbol.
60-
ld -L Adds a directory to the library search path.
55+
- ld -T used to specifiy the linker file used
56+
57+
- ld -o Specifies the name of the output file (executable or library) to be generated
58+
59+
- ld -l Links against the specified library, searching for it in the standard library directories.
60+
61+
- ld -pie Creates a position-independent executable (PIE), which can be loaded at any address in memory
62+
63+
- ld -u Prevents garbage collection of the specified external symbol.
64+
65+
- ld -L Adds a directory to the library search path.
6166

6267
## Use of ld
6368

using-ifconfig.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# using ifconfig
2+
3+
## Flags
4+
5+
`ifconfig -a` is `all` mode, useful for seeing all the interfaces that are configured on the system, regardless of their current state
6+
`ifconfig -h` returns the help including hardware types
7+
`ifconfig -s` returns a listing of things like MTU size as a table
8+
`ifconfig -v` is `verbose` mode, useful when you need detailed information about the configuration of each interface
9+
`ifconfig -V` returns version numbers
10+
11+
There seems to be no applicable uppercase flags as they do not return anything if you
12+
do them individually which is how I tested, other than -V.
13+
14+
Apparently there are some others.. but I have not tested these, other than when I tried these did not return anything when done individually.
15+
16+
-s Shows statistics for each network interface.
17+
-r Displays the network interfaces in reverse order.
18+
-n Shows numerical addresses instead of trying to determine symbolic host, port, or user names.
19+
-l Uses large addresses instead of trying to determine symbolic host, port, or user names.
20+
-d Detach the given packet from the network stream.
21+
-I Specifies the network interface to be configured.
22+
-e Displays the Ethernet (MAC) address of the interface.
23+
-M Displays the media type of the interface.
24+
-m Displays the Maximum Transmission Unit (MTU) of the interface.
25+
-p Sets the interface into promiscuous mode.
26+
-q Suppresses the display of certain information.
27+
-t Sets the timeout for the interface.
28+
-u Specifies the unit number of the interface.
29+
-w Writes the current configuration to the system's network configuration files.
30+
-f This option was used to set the IP address of an interface to a fixed address.
31+
-g Specifies the default gateway for the interface. This is more commonly managed with the ip route command in modern usage.
32+
-I Specifies the network interface to be configured. This is a more general option.
33+
-P Specifies the network prefix for the interface. This is more commonly managed with the ip addr command in modern usage.
34+
35+
`--` flags seem to be used with `up` as in `ifconfig eth0 192.168.1.1 -- up` or `ifconfig eth0 up -- 192.168.1.1 netmask 255.255.255.0`.
36+
However, -- could be used for vebose flags like `--help`.
37+
38+
there are man pages at man ifconfig.

using-ls-command.md

+44-1
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,87 @@
11
# Using the ls command in linux
22

3-
Anything not in this list doesn't return anything.
3+
Using the ls command Anything not in this list doesn't return anything. My ls comes from `ls (GNU coreutils) 8.30`, and installed to `/usr/bin/ls`
4+
5+
## Flags
6+
7+
### Uppercase flags
48

59
`ls -a` directory listing in two columns. this only includes dotfiles.
10+
611
`ls -b`
12+
713
`ls -c`
14+
815
`ls -d` lists only . directories
16+
917
`ls -f` This shows dotfiles that start with `.`
18+
1019
`ls -g` This shows permissions.
20+
1121
`ls -h`
22+
1223
`ls -i`
24+
1325
`ls -k`
26+
1427
`ls -l` This shows permissions.
28+
1529
`ls -m` directory listing, comma separated
30+
1631
`ls -n` This shows permissions.
32+
1733
`ls -o` This shows permissions.
34+
1835
`ls -p`
36+
1937
`ls -q`
38+
2039
`ls -r` This is a backwards reverse directory listing
40+
2141
`ls -s` This shows files with their sizes
42+
2243
`ls -t`
44+
2345
`ls -u`
46+
2447
`ls -v`
48+
2549
`ls -w` requires some sort of argument to work
50+
2651
`ls -x`
2752

53+
### Uppercase flags
54+
2855
`ls -A`
56+
2957
`ls -B`
58+
3059
`ls -C`
60+
3161
`ls -D`
62+
3263
`ls -F` ends each entry with / in a wide format
64+
3365
`ls -G`
66+
3467
`ls -H`
68+
3569
`ls -I` requires an argument
70+
3671
`ls -L`
72+
3773
`ls -N`
74+
3875
`ls -Q` all entries appear in between double quotes in a wide format
76+
3977
`ls -R` very interesting output when done by itself
78+
4079
`ls -S`
80+
4181
`ls -T` requires an argument.
82+
4283
`ls -U`
84+
4385
`ls -X` lists dirs/folders on the left half of a wide format output
86+
4487
`ls -Z` lists all entries with a ? in a wide format

working-with-tmux.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Check the version of tmux with `tmux -V`
88

99
There is a configuration file used. It is `~/.tmux.conf`
1010

11-
there is documentation at `man tmux`
11+
there is documentation at `man tmux`.
12+
13+
The github is at <https://github.com/tmux/tmux>
1214

1315
Systemwide configruation is at `/etc/tmux.conf`
1416

0 commit comments

Comments
 (0)