Проверка наличия bzip2 с помощью команды bzip2 --version
На предыдущем этапе мы проверили версию gzip
. Теперь сделаем то же самое для bzip2
, еще одной популярной утилиты для сжатия файлов.
Как и gzip
, bzip2
также поддерживает опцию --version
для отображения информации о своей версии.
В терминале введите следующую команду и нажмите Enter:
bzip2 --version
Вы должны увидеть вывод, похожий на следующий:
bzip2, a block-sorting file compressor. Version 1.0.8, 13-July-2019.
Copyright (C) 1996-2019 Julian Seward <[email protected]>. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. The origin of this software must not be misrepresented; you must
not claim that you wrote the original software. If you use this
software in a product, an acknowledgment in the product
documentation would be appreciated but is not required.
This software is provided `as is'', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Julian Seward, Cambridge, UK.
[email protected]
Снова повторюсь, конкретный номер версии может отличаться, но этот вывод подтверждает, что bzip2
установлен и готов к использованию.
Проверка версии команды - это фундаментальный навык в Linux. Это помогает вам убедиться, что программа установлена и понять, с какой версией вы работаете, что может быть важно для совместимости или устранения неполадок.
Нажмите Продолжить, чтобы перейти к следующему этапу.