Useful cmds under Linux

本文介绍了一系列实用的Linux命令,包括符号解析、文件压缩与解压、软件包内容提取及会话管理等技巧,帮助读者更高效地进行系统管理和软件开发。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. 'nm', 'eu-readelf' and 'c++filt'

 Example code:

[user@forever cpp]$ g++ test1.cpp -o test1.exe

[user@forever cpp]$ nm test1.exe | grep Fun
0804872a W _ZN4Test3FunEiPKc

[user@forever cpp]$ eu-readelf -a test1.exe | grep Fun
   75: 0804872a     76 FUNC    WEAK   DEFAULT       12 _ZN4Test3FunEiPKc

[user@forever cpp]$ c++filt _ZN4Test3FunEiPKc
Test::Fun(int, char const*)


2. tar

$ tar czvf test.tar.gz test

$ tar cjvf test.tar.bz2 test

$ tar zxvf test.tar.gz

$ tar jxvf test.tar.bz2

3. 'rpm2cpio' and 'cpio'

$ rpm2cpio XXX.rpm | cpio -id

4. screen

创建一个session

$ screen -dmS session_name -t title

重新连接session

$ screen -r session_name

连接非断开模式的session

$ screen -x session_name

5. 'whatis' and 'apropos'

whatis  - search the whatis database for complete words.

apropos - search the whatis database for strings.

man -f     Equivalent to whatis.

man -k     Equivalent to apropos.

$ man -f pty
pty                  (7)  - pseudo-terminal interfaces

$ man -k pty
cleanlinks           (1x)  - remove dangling symbolic links and empty directories
forkpty [openpty]    (3)  - tty utility functions
login_tty [openpty]  (3)  - tty utility functions
open_init_pty        (8)  - run an program under a psuedo terminal
openpty              (3)  - tty utility functions
posix_trace_eventset_empty [posix_trace_eventset_add] (3p)  - manipulate trace event type sets (TRACING)
pty                  (7)  - pseudo-terminal interfaces
rmdir                (1)  - remove empty directories
sigemptyset          (3p)  - initialize and empty a signal set
sigemptyset [sigsetops] (3)  - POSIX signal set operations

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值