]> git.ipfire.org Git - thirdparty/util-linux.git/blame - Documentation/deprecated.txt
Use https for project-related documentation.
[thirdparty/util-linux.git] / Documentation / deprecated.txt
CommitLineData
b1d3faa9 1The following is a list of commands or features that are deprecated. All
ad64b1ae
JG
2deprecated utils are in maintenance mode and we keep them in source tree for
3backward compatibility only.
72a71454 4
f01e54d7
LH
5
6what: column --table-empty-lines
7why: renamed to --keep-empty-lines
8since: v2.37
9
10--------------------------
11
de4568f7
WP
12what: hwclock --debug
13why: renamed to --verbose, and may be repurposed later.
14since: v2.32
15
16--------------------------
17
18what: hwclock -v for version
19why: renamed to -V
20since: v2.20 (was repurposed to verbose in v2.32)
21
22--------------------------
23
d7a3bf94
KZ
24what: column --columns
25why: renamed to --output-width
26since: v2.30
27
28--------------------------
a6c6662d 29
d420a7f9
KZ
30what: sfdisk --show-size
31why: this does not belong to fdisk, use "blockdev --getsz"
a6c6662d 32
d420a7f9 33--------------------------
35ce145f
KZ
34
35what: sfdisk --Linux
36why: unnecessary option, only Linux (non-DOS mode) is supported
37
38--------------------------
39
d420a7f9
KZ
40what: sfdisk --unit
41why: unnecessary option, only 'S'ector unit is supported
42
43--------------------------
44
ba7f6ba5
SB
45what: sfdisk --show-pt-geometry
46why: equal to --show-geometry for a long time
47
48--------------------------
49
d420a7f9
KZ
50what: "swapon --summary" output format
51why: 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
56What: mkfs
57Why: use filesystem specific mkfs.<type>.
58
dba96eed
KZ
59--------------------------
60
9564e46c
KZ
61What: fdisk -s <device>
62Why: this does not belong to fdisk, use "blockdev --getsz"
63
64--------------------------
65
24d741d8
KZ
66What: 'udev' and 'list' blkid(8) output formats
67Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
68
69--------------------------
70
4c50b0b3 71What: line(1) command
1626ce11 72Why: use the read(1) command
4c50b0b3
KZ
73
74--------------------------
75
956e5828
KZ
76What: pg(1) command
77Why: use less(1) or more(1)
78
79--------------------------
80
81What: CHS stuff in fdisk (except SUN where are partitions addresses by cylinders only)
73afd3f8 82Why: use addressing by sectors, CHS does not work with modern disks,
956e5828
KZ
83 confusing for users...
84
85--------------------------
86
4ac02d4d 87What: losetup -s
4ac02d4d
KZ
88Why: 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
93What: 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
110What: tunelp
111Why: parallel port printers are probably almost extinct devices
112
777b5173
SK
113----------------------------
114
115The Single UNIX(TM) Specification, Version 2
116Copyright (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