2008-03-26 09:48:46 -05:00
|
|
|
The following is a list of commands or features that are deprecated. All
|
2011-01-01 11:21:46 -06:00
|
|
|
deprecated utils are in maintenance mode and we keep them in source tree for
|
|
|
|
backward compatibility only.
|
2007-04-03 15:02:20 -05:00
|
|
|
|
2020-09-21 11:26:00 -05:00
|
|
|
|
|
|
|
what: column --table-empty-lines
|
|
|
|
why: renamed to --keep-empty-lines
|
|
|
|
since: v2.37
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2017-12-24 14:37:36 -06:00
|
|
|
what: hwclock --debug
|
|
|
|
why: renamed to --verbose, and may be repurposed later.
|
|
|
|
since: v2.32
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
what: hwclock -v for version
|
|
|
|
why: renamed to -V
|
|
|
|
since: v2.20 (was repurposed to verbose in v2.32)
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2017-01-17 06:11:27 -06:00
|
|
|
what: column --columns
|
|
|
|
why: renamed to --output-width
|
|
|
|
since: v2.30
|
|
|
|
|
|
|
|
--------------------------
|
2014-06-30 04:03:12 -05:00
|
|
|
|
2014-09-18 03:21:35 -05:00
|
|
|
what: sfdisk --show-size
|
|
|
|
why: this does not belong to fdisk, use "blockdev --getsz"
|
2014-06-30 04:03:12 -05:00
|
|
|
|
2014-09-18 03:21:35 -05:00
|
|
|
--------------------------
|
2014-09-18 04:56:49 -05:00
|
|
|
|
|
|
|
what: sfdisk --Linux
|
|
|
|
why: unnecessary option, only Linux (non-DOS mode) is supported
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2014-09-18 03:21:35 -05:00
|
|
|
what: sfdisk --unit
|
|
|
|
why: unnecessary option, only 'S'ector unit is supported
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2016-08-05 06:05:39 -05:00
|
|
|
what: sfdisk --show-pt-geometry
|
|
|
|
why: equal to --show-geometry for a long time
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2014-09-18 03:21:35 -05:00
|
|
|
what: "swapon --summary" output format
|
|
|
|
why: does not provide control on output data formatting. The recommended solution
|
|
|
|
is to use --show=<columns> in all scripts.
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2014-02-21 05:04:18 -06:00
|
|
|
What: mkfs
|
|
|
|
Why: use filesystem specific mkfs.<type>.
|
|
|
|
|
2014-04-07 03:05:14 -05:00
|
|
|
--------------------------
|
|
|
|
|
2013-08-30 06:34:16 -05:00
|
|
|
What: fdisk -s <device>
|
|
|
|
Why: this does not belong to fdisk, use "blockdev --getsz"
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2012-03-26 06:09:27 -05:00
|
|
|
What: 'udev' and 'list' blkid(8) output formats
|
|
|
|
Why: udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2010-08-04 05:14:57 -05:00
|
|
|
What: line(1) command
|
2017-06-28 21:09:08 -05:00
|
|
|
Why: use the read(1) command
|
2010-08-04 05:14:57 -05:00
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2013-02-26 08:26:54 -06:00
|
|
|
What: pg(1) command
|
|
|
|
Why: use less(1) or more(1)
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
What: CHS stuff in fdisk (except SUN where are partitions addresses by cylinders only)
|
2018-02-15 15:02:18 -06:00
|
|
|
Why: use addressing by sectors, CHS does not work with modern disks,
|
2013-02-26 08:26:54 -06:00
|
|
|
confusing for users...
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2008-04-15 06:44:21 -05:00
|
|
|
What: losetup -s
|
|
|
|
Why: the option -s is in collision with the Loop-AES losetup dialect that is used
|
|
|
|
in some distributions. Use the long version (--show) only.
|
|
|
|
|
|
|
|
--------------------------
|
2007-04-03 15:02:20 -05:00
|
|
|
|
2012-11-12 06:23:19 -06:00
|
|
|
What: losetup output format without --list
|
|
|
|
|
2019-03-22 07:27:33 -05:00
|
|
|
deprecated format:
|
2012-11-12 06:23:19 -06:00
|
|
|
|
|
|
|
# losetup -a
|
|
|
|
/dev/loop0: []: (/home/fs-images/swap.img)
|
|
|
|
/dev/loop1: []: (/home/fs-images/disk.img), offset 100
|
|
|
|
|
|
|
|
new format:
|
|
|
|
|
|
|
|
# losetup
|
|
|
|
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
|
|
|
|
/dev/loop0 0 0 0 0 /home/fs-images/swap.img
|
|
|
|
/dev/loop1 0 100 0 0 /home/fs-images/disk.img
|
|
|
|
|
|
|
|
--------------------------
|
|
|
|
|
2012-12-16 04:43:56 -06:00
|
|
|
What: tunelp
|
|
|
|
Why: parallel port printers are probably almost extinct devices
|
|
|
|
|
2012-10-23 14:59:26 -05:00
|
|
|
----------------------------
|
|
|
|
|
|
|
|
The Single UNIX(TM) Specification, Version 2
|
|
|
|
Copyright (C) 1997 The Open Group
|
|
|
|
|
|
|
|
Legacy utilities which are part util-linux package are:
|
|
|
|
|
|
|
|
col
|
|
|
|
line
|
|
|
|
pg
|
|
|
|
|
|
|
|
http://pubs.opengroup.org/onlinepubs/7908799/xcu/intro.html#tag_001_003_003
|