]> git.ipfire.org Git - thirdparty/util-linux.git/blob - Documentation/deprecated.txt
Merge branch 'hwclock-jwp-reviewed' of git://github.com/kerolasa/lelux-utiliteetit
[thirdparty/util-linux.git] / Documentation / deprecated.txt
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: column --columns
6 why: renamed to --output-width
7 since: v2.30
8
9 --------------------------
10
11 what: hwclock --compare
12 why: Output printed by --compare option was nonesense.
13
14 --------------------------
15
16 what: tailf
17 why: "tail -f" is better nowadays, tailf has unfixed bugs
18
19 --------------------------
20
21 what: sfdisk --show-size
22 why: this does not belong to fdisk, use "blockdev --getsz"
23
24 --------------------------
25
26 what: sfdisk --Linux
27 why: unnecessary option, only Linux (non-DOS mode) is supported
28
29 --------------------------
30
31 what: sfdisk --unit
32 why: unnecessary option, only 'S'ector unit is supported
33
34 --------------------------
35
36 what: sfdisk --show-pt-geometry
37 why: equal to --show-geometry for a long time
38
39 --------------------------
40
41 what: "swapon --summary" output format
42 why: does not provide control on output data formatting. The recommended solution
43 is to use --show=<columns> in all scripts.
44
45 --------------------------
46
47 What: mkfs
48 Why: use filesystem specific mkfs.<type>.
49
50 --------------------------
51
52 What: fdisk -s <device>
53 Why: this does not belong to fdisk, use "blockdev --getsz"
54
55 --------------------------
56
57 What: 'udev' and 'list' blkid(8) output formats
58 Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
59
60 --------------------------
61
62 What: line(1) command
63 Why: useless, nobody uses this command, head(1) is better
64
65 --------------------------
66
67 What: pg(1) command
68 Why: use less(1) or more(1)
69
70 --------------------------
71
72 What: CHS stuff in fdisk (except SUN where are partitions addresses by cylinders only)
73 Why: use addresssing by sectors, CHS does not work with modern disks,
74 confusing for users...
75
76 --------------------------
77
78 What: losetup -s
79 Why: the option -s is in collision with the Loop-AES losetup dialect that is used
80 in some distributions. Use the long version (--show) only.
81
82 --------------------------
83
84 What: losetup output format without --list
85
86 deprecated format"
87
88 # losetup -a
89 /dev/loop0: []: (/home/fs-images/swap.img)
90 /dev/loop1: []: (/home/fs-images/disk.img), offset 100
91
92 new format:
93
94 # losetup
95 NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
96 /dev/loop0 0 0 0 0 /home/fs-images/swap.img
97 /dev/loop1 0 100 0 0 /home/fs-images/disk.img
98
99 --------------------------
100
101 What: tunelp
102 Why: parallel port printers are probably almost extinct devices
103
104 ----------------------------
105
106 What: reset
107 Why: ncurses has better reset(1)
108
109 ----------------------------
110
111 The Single UNIX(TM) Specification, Version 2
112 Copyright (C) 1997 The Open Group
113
114 Legacy utilities which are part util-linux package are:
115
116 col
117 line
118 pg
119
120 http://pubs.opengroup.org/onlinepubs/7908799/xcu/intro.html#tag_001_003_003