Popular commands

Popular commands.

Print exported variables
env export export -p

About "export"
The export command is one of the bash shell BUILTINS commands, which means it is part of your shell. The export command is fairly simple to use as it has straightforward syntax with only three available command options. In general, the export command marks an environment variable to be exported with any newly forked child processes and thus it allows a child process to inherit all marked variables. If you are unsure what this means read on, as this article will explain this process in more detail.

last, lastb
Show listing of last logged in users. /var/log/wtmp /var/log/btmp

fdisk -l
View all existing disk partitions.

Example of disk format: fdisk /dev/sdf m n (add new partition) p 1 m w mkfs.ext3 /dev/sdf1 mount /dev/sdf1 /data

modprobe
modprobe -l will display all available modules.

lsmod command will display all modules that are currently loaded in the Linux kernel. modprobe capability (phai dat load tu dong /etc/rc.local) lsmod | grep cap