1. To find a file in current directory
find . -name "something.h"
2. To find a file (in current directory) with some text in it
grep "sometext" . -wrn
-r is for recursive; -n is to print the line numbers; -w for "whole" words only
3. To find the dependencies of an exe on .so files
ldd exe-name
3. To find the dependencies of an exe on .so files
ldd exe-name
4. To remove the debug symbols from an exe
strip --strip-debug or
strip -g or
strip - d
6. To list down exported symbols from kernel
cat /proc/kallsyms | grep "__ksymtab_proc_root"
NOTE: "__ksymtab" prefixed symbols are the symbols exported from the kernel.
7. To install from the spec file
rpm -ba "spec"
NOTE: "__ksymtab" prefixed symbols are the symbols exported from the kernel.
7. To install from the spec file
rpm -ba "spec"
8. To find the distribution of the Linux (11.1 or 10.2 or 10.3), use
lsb_release -a
NOTE: lsb stands for Linux Standard Base
9. To find the size of the files (in friendly format) in a directory, go inside that directory
du -ch *
9. To find the size of the files (in friendly format) in a directory, go inside that directory
du -ch *
No comments:
Post a Comment