]>
Commit | Line | Data |
---|---|---|
b1d3faa9 | 1 | The following is a list of commands or features that are deprecated. All |
ad64b1ae JG |
2 | deprecated utils are in maintenance mode and we keep them in source tree for |
3 | backward compatibility only. | |
72a71454 | 4 | |
f01e54d7 LH |
5 | |
6 | what: column --table-empty-lines | |
7 | why: renamed to --keep-empty-lines | |
8 | since: v2.37 | |
9 | ||
10 | -------------------------- | |
11 | ||
de4568f7 WP |
12 | what: hwclock --debug |
13 | why: renamed to --verbose, and may be repurposed later. | |
14 | since: v2.32 | |
15 | ||
16 | -------------------------- | |
17 | ||
18 | what: hwclock -v for version | |
19 | why: renamed to -V | |
20 | since: v2.20 (was repurposed to verbose in v2.32) | |
21 | ||
22 | -------------------------- | |
23 | ||
d7a3bf94 KZ |
24 | what: column --columns |
25 | why: renamed to --output-width | |
26 | since: v2.30 | |
27 | ||
28 | -------------------------- | |
a6c6662d | 29 | |
d420a7f9 KZ |
30 | what: sfdisk --show-size |
31 | why: this does not belong to fdisk, use "blockdev --getsz" | |
a6c6662d | 32 | |
d420a7f9 | 33 | -------------------------- |
35ce145f KZ |
34 | |
35 | what: sfdisk --Linux | |
36 | why: unnecessary option, only Linux (non-DOS mode) is supported | |
37 | ||
38 | -------------------------- | |
39 | ||
d420a7f9 KZ |
40 | what: sfdisk --unit |
41 | why: unnecessary option, only 'S'ector unit is supported | |
42 | ||
43 | -------------------------- | |
44 | ||
ba7f6ba5 SB |
45 | what: sfdisk --show-pt-geometry |
46 | why: equal to --show-geometry for a long time | |
47 | ||
48 | -------------------------- | |
49 | ||
d420a7f9 KZ |
50 | what: "swapon --summary" output format |
51 | why: does not provide control on output data formatting. The recommended solution | |
52 | is to use --show=<columns> in all scripts. | |
53 | ||
54 | -------------------------- | |
55 | ||
4459245f KZ |
56 | What: mkfs |
57 | Why: use filesystem specific mkfs.<type>. | |
58 | ||
dba96eed KZ |
59 | -------------------------- |
60 | ||
9564e46c KZ |
61 | What: fdisk -s <device> |
62 | Why: this does not belong to fdisk, use "blockdev --getsz" | |
63 | ||
64 | -------------------------- | |
65 | ||
24d741d8 KZ |
66 | What: 'udev' and 'list' blkid(8) output formats |
67 | Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8) | |
68 | ||
69 | -------------------------- | |
70 | ||
4c50b0b3 | 71 | What: line(1) command |
1626ce11 | 72 | Why: use the read(1) command |
4c50b0b3 KZ |
73 | |
74 | -------------------------- | |
75 | ||
956e5828 KZ |
76 | What: pg(1) command |
77 | Why: use less(1) or more(1) | |
78 | ||
79 | -------------------------- | |
80 | ||
81 | What: CHS stuff in fdisk (except SUN where are partitions addresses by cylinders only) | |
73afd3f8 | 82 | Why: use addressing by sectors, CHS does not work with modern disks, |
956e5828 KZ |
83 | confusing for users... |
84 | ||
85 | -------------------------- | |
86 | ||
4ac02d4d | 87 | What: losetup -s |
4ac02d4d KZ |
88 | Why: the option -s is in collision with the Loop-AES losetup dialect that is used |
89 | in some distributions. Use the long version (--show) only. | |
90 | ||
91 | -------------------------- | |
72a71454 | 92 | |
ead259e3 KZ |
93 | What: losetup output format without --list |
94 | ||
25d9f140 | 95 | deprecated format: |
ead259e3 KZ |
96 | |
97 | # losetup -a | |
98 | /dev/loop0: []: (/home/fs-images/swap.img) | |
99 | /dev/loop1: []: (/home/fs-images/disk.img), offset 100 | |
100 | ||
101 | new format: | |
102 | ||
103 | # losetup | |
104 | NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE | |
105 | /dev/loop0 0 0 0 0 /home/fs-images/swap.img | |
106 | /dev/loop1 0 100 0 0 /home/fs-images/disk.img | |
107 | ||
108 | -------------------------- | |
109 | ||
1342ffcb SK |
110 | What: tunelp |
111 | Why: parallel port printers are probably almost extinct devices | |
112 | ||
777b5173 SK |
113 | ---------------------------- |
114 | ||
115 | The Single UNIX(TM) Specification, Version 2 | |
116 | Copyright (C) 1997 The Open Group | |
117 | ||
118 | Legacy utilities which are part util-linux package are: | |
119 | ||
120 | col | |
121 | line | |
122 | pg | |
123 | ||
033b5a52 | 124 | https://pubs.opengroup.org/onlinepubs/7908799/xcu/intro.html#tag_001_003_003 |