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