]>
Commit | Line | Data |
---|---|---|
1 | The following is a list of commands or features that are deprecated. All | |
2 | deprecated utils are in maintenance mode and we keep them in source tree for | |
3 | backward compatibility only. | |
4 | ||
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 | ||
17 | what: column --columns | |
18 | why: renamed to --output-width | |
19 | since: v2.30 | |
20 | ||
21 | -------------------------- | |
22 | ||
23 | what: sfdisk --show-size | |
24 | why: this does not belong to fdisk, use "blockdev --getsz" | |
25 | ||
26 | -------------------------- | |
27 | ||
28 | what: sfdisk --Linux | |
29 | why: unnecessary option, only Linux (non-DOS mode) is supported | |
30 | ||
31 | -------------------------- | |
32 | ||
33 | what: sfdisk --unit | |
34 | why: unnecessary option, only 'S'ector unit is supported | |
35 | ||
36 | -------------------------- | |
37 | ||
38 | what: sfdisk --show-pt-geometry | |
39 | why: equal to --show-geometry for a long time | |
40 | ||
41 | -------------------------- | |
42 | ||
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 | ||
49 | What: mkfs | |
50 | Why: use filesystem specific mkfs.<type>. | |
51 | ||
52 | -------------------------- | |
53 | ||
54 | What: fdisk -s <device> | |
55 | Why: this does not belong to fdisk, use "blockdev --getsz" | |
56 | ||
57 | -------------------------- | |
58 | ||
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 | ||
64 | What: line(1) command | |
65 | Why: use the read(1) command | |
66 | ||
67 | -------------------------- | |
68 | ||
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) | |
75 | Why: use addressing by sectors, CHS does not work with modern disks, | |
76 | confusing for users... | |
77 | ||
78 | -------------------------- | |
79 | ||
80 | What: losetup -s | |
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 | -------------------------- | |
85 | ||
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 | ||
103 | What: tunelp | |
104 | Why: parallel port printers are probably almost extinct devices | |
105 | ||
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 |