]> git.ipfire.org Git - thirdparty/util-linux.git/blob - Documentation/deprecated.txt
swapon: mark --sumarry as deprecated
[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
6 what: "swapon --summary" output format
7 why: does not provide control on output data formatting. The recommended solution
8 is to use --show=<columns> in all scripts.
9
10 what: "pid" as binary name for "kill --pid"
11 why: too ugly, too obscure
12
13 --------------------------
14
15 What: mkfs
16 Why: use filesystem specific mkfs.<type>.
17
18 --------------------------
19
20 What: fdisk -s <device>
21 Why: this does not belong to fdisk, use "blockdev --getsz"
22
23 --------------------------
24
25 What: 'udev' and 'list' blkid(8) output formats
26 Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
27
28 --------------------------
29
30 What: line(1) command
31 Why: useless, nobody uses this command, head(1) is better
32
33 --------------------------
34
35 What: pg(1) command
36 Why: use less(1) or more(1)
37
38 --------------------------
39
40 What: CHS stuff in fdisk (except SUN where are partitions addresses by cylinders only)
41 Why: use addresssing by sectors, CHS does not work with modern disks,
42 confusing for users...
43
44 --------------------------
45
46 What: losetup -s
47 Why: the option -s is in collision with the Loop-AES losetup dialect that is used
48 in some distributions. Use the long version (--show) only.
49
50 --------------------------
51
52 What: losetup output format without --list
53
54 deprecated format"
55
56 # losetup -a
57 /dev/loop0: []: (/home/fs-images/swap.img)
58 /dev/loop1: []: (/home/fs-images/disk.img), offset 100
59
60 new format:
61
62 # losetup
63 NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
64 /dev/loop0 0 0 0 0 /home/fs-images/swap.img
65 /dev/loop1 0 100 0 0 /home/fs-images/disk.img
66
67 --------------------------
68
69 What: tunelp
70 Why: parallel port printers are probably almost extinct devices
71
72 --------------------------
73
74 What: deprecated_last(1)
75 Why: nobody uses this implementation
76
77 ----------------------------
78
79 The Single UNIX(TM) Specification, Version 2
80 Copyright (C) 1997 The Open Group
81
82 Legacy utilities which are part util-linux package are:
83
84 col
85 line
86 pg
87
88 http://pubs.opengroup.org/onlinepubs/7908799/xcu/intro.html#tag_001_003_003