shell介绍
Posted on
Edited on
在计算机科学中,shell 是一种用户界面,用于与操作系统交互。它通常是一个命令行界面(CLI),允许用户通过输入文本命令来执行任务,比如运行程序、管理文件或配置系统。Shell 的名称来源于它像“壳”一样包裹着操作系统内核,提供了一个与内核沟通的桥梁。

常见Shell 类型
Bourne Shell (sh)
- Unix中最古老的shell之一,由Stephen Bourne开发。
- 简单但功能有限,很多现代shell都基于它。
Bash (Bourne Again Shell)
- 最流行的Linux shell,是Bourne Shell的增强版。
- 支持脚本编写、命令历史、自动补全等功能。
Zsh
- 一个功能强大的现代shell,扩展了Bash的功能。
- 提供更好的自定义选项和插件支持,比如Oh My Zsh。
Fish (Friendly Interactive Shell)
- 以用户友好著称,默认提供语法高亮和智能建议。
PowerShell
- 微软开发的shell,主要用于Windows,但也支持跨平台。
- 面向对象,适合系统管理和自动化。
fluent-bit之ubuntu安装
Posted on
Edited on
fluent-bit介绍
Posted on
Edited on
Fluent Bit 是一个开源的、高性能的日志处理器和转发器,专为嵌入式系统、物联网设备和云原生环境设计。它由 Treasure Data 开发,现由 CNCF(云原生计算基金会)托管,与 Fluentd 同属一个生态系统,但相比 Fluentd,Fluent Bit 更轻量,资源占用更低,适用于资源受限的场景。

fluent-bit
ubuntu包解压异常(dpkg: error processing)
Posted on
...
Unpacking linux-headers-6.8.0-56 (6.8.0-56.58) ...
dpkg-deb (subprocess): decompressing archive '/var/cache/apt/archives/linux-headers-6.8.0-56_6.8.0-56.58_all.deb' (size=13837808) member 'data.tar': zstd error: Data corruption detected
dpkg-deb: error: <decompress> subprocess returned error exit status 2
...
env
- ubuntu-24.04.2 LTS (Noble Numbat)
openobserve之docker体验
Posted on
Edited on
monitor之dstat命令
Posted on
Edited on
Fedora Media Writer写iso软件
Posted on
Edited on
fedora workstation体验
Posted on
Edited on
Fedora Workstation Live 42 Beta 于 2025 年 3 月 18 日发布,目前仍处于测试阶段,因此安装过程中可能会遇到一些小问题,但整体体验已经非常接近最终版本。
env
- virtualbox-v7.1.6
- Fedora-Workstation-Live-x86_64-42_Beta-1.4.iso
vmstat输出字段解读
Posted on
Edited on
ubuntu之dpkg命令
Posted on
Edited on
在 Ubuntu 或其他基于 Debian 的系统中,**dpkg 是一个底层的包管理工具,用于处理 .deb 包**的安装、卸载、查询等操作。
dpkg help
root@vgt-ubuntu-10:~# dpkg --help
Usage: dpkg [<option>...] <command>
Commands:
-i|--install <.deb file name>... | -R|--recursive <directory>... ### 安装
--unpack <.deb file name>... | -R|--recursive <directory>...
-A|--record-avail <.deb file name>... | -R|--recursive <directory>...
--configure <package>... | -a|--pending
--triggers-only <package>... | -a|--pending
-r|--remove <package>... | -a|--pending ### 移除
-P|--purge <package>... | -a|--pending ### 移除包及配置
-V|--verify [<package>...] Verify the integrity of package(s).
--get-selections [<pattern>...] Get list of selections to stdout.
--set-selections Set package selections from stdin.
--clear-selections Deselect every non-essential package.
--update-avail [<Packages-file>] Replace available packages info.
--merge-avail [<Packages-file>] Merge with info from file.
--clear-avail Erase existing available info.
--forget-old-unavail Forget uninstalled unavailable pkgs.
-s|--status [<package>...] Display package status details.
-p|--print-avail [<package>...] Display available version details.
-L|--listfiles <package>... List files 'owned' by package(s). ### 列出包内文件
-l|--list [<pattern>...] List packages concisely.
-S|--search <pattern>... Find package(s) owning file(s).
-C|--audit [<package>...] Check for broken package(s).
--yet-to-unpack Print packages selected for installation.
--predep-package Print pre-dependencies to unpack.
--add-architecture <arch> Add <arch> to the list of architectures.
--remove-architecture <arch> Remove <arch> from the list of architectures.
--print-architecture Print dpkg architecture.
--print-foreign-architectures Print allowed foreign architectures.
--assert-help Show help on assertions.
--assert-<feature> Assert support for the specified feature.
--validate-<thing> <string> Validate a <thing>'s <string>.
--compare-versions <a> <op> <b> Compare version numbers - see below.
--force-help Show help on forcing.
-Dh|--debug=help Show help on debugging.
-?, --help Show this help message.
--version Show the version.
Validatable things: pkgname, archname, trigname, version.
Use dpkg with -b, --build, -c, --contents, -e, --control, -I, --info,
-f, --field, -x, --extract, -X, --vextract, --ctrl-tarfile, --fsys-tarfile
on archives (type dpkg-deb --help).
Options:
--admindir=<directory> Use <directory> instead of /var/lib/dpkg.
--root=<directory> Install on a different root directory.
--instdir=<directory> Change installation dir without changing admin dir.
--pre-invoke=<command> Set a pre-invoke hook.
--post-invoke=<command> Set a post-invoke hook.
--path-exclude=<pattern> Do not install paths which match a shell pattern.
--path-include=<pattern> Re-include a pattern after a previous exclusion.
-O|--selected-only Skip packages not selected for install/upgrade.
-E|--skip-same-version Skip packages whose same version is installed.
-G|--refuse-downgrade Skip packages with earlier version than installed.
-B|--auto-deconfigure Install even if it would break some other package.
--[no-]triggers Skip or force consequential trigger processing.
--verify-format=<format> Verify output format (supported: 'rpm').
--no-pager Disables the use of any pager.
--no-debsig Do not try to verify package signatures.
--no-act|--dry-run|--simulate
Just say what we would do - don't do it.
-D|--debug=<octal> Enable debugging (see -Dhelp or --debug=help).
--status-fd <n> Send status change updates to file descriptor <n>.
--status-logger=<command> Send status change updates to <command>'s stdin.
--log=<filename> Log status changes and actions to <filename>.
--ignore-depends=<package>[,...]
Ignore dependencies involving <package>.
--force-<thing>[,...] Override problems (see --force-help).
--no-force-<thing>[,...] Stop when problems encountered.
--refuse-<thing>[,...] Ditto.
--abort-after <n> Abort after encountering <n> errors.
--robot Use machine-readable output on some commands.
Comparison operators for --compare-versions are:
lt le eq ne ge gt (treat empty version as earlier than any version);
lt-nl le-nl ge-nl gt-nl (treat empty version as later than any version);
< << <= = >= >> > (only for compatibility with control file syntax).
Use 'apt' or 'aptitude' for user-friendly package management.
procps之vmstat命令
Posted on
Edited on
