$ man command-name
$ sudo adduser tecmint
$ agetty -L 9600 ttyS1 vt100
$ alias home='cd /home/tecmint/public_html'
anacron Command
apropos Command
$ apropos adduser
$ sudo apt update
apt-get Command
$ sudo apt-get update
aptitude Command
$ sudo aptitude update
arch Command
$ arch
$ sudo arp-scan --interface=enp2s0 --localnet
$ sudo echo "shutdown -h now" | at -m 23:55
$ atq
$ atrm 2
awk Command
$ awk '//{print}'/etc/hosts
basename Command
$ basename bin/findhosts.sh
$ echo 20.05 + 15.00 | bc
$ tar -czf home.tar.gz . $ bg $ jobs
bzip2 Command
$ bzip2 -z filename #Compress $ bzip2 -d filename.bz2 #Decompress
cal Command
$ cal
$ cat file.txt
chgrp Command
$ chgrp tecmint users.txt
$ chmod +x sysinfo.sh
$ chmod -R www-data:www-data /var/www/html
cksum Command
$ cksum README.txt
$ clear
$ cmp file1 file2
$ comm file1 file2
$ cp /home/tecmint/file1 /home/tecmint/Personal/
$ date $ date --set="8 JUN 2017 13:00:00"
dd Command
$ dd if=/home/tecmint/kali-linux-1.0.4-i386.iso of=/dev/sdc1 bs=512M; sync
$ df -h
diff Command
$ diff file1 file2
dir Command
dir command works like Linux is command, it lists the contents of a directory.
$ dir
$ sudo dmidecode --type system
$ du /home/aaronkilik
$ echo “This is TecMint - Linux How Tos”
$ eject /dev/cdrom $ eject /mnt/cdrom/ $ eject /dev/sda
$ env
exit Command
$ exit
$ expr 20 + 30
$ factor 10
$ find /home/tecmint/ -name tecmint.txt
free Command
Free command shows the system memory usage (free, used, swapped, cached, etc.) in the system including swap space. Use the -h option to display output in human friendly format.
-h
$ free -h
grep Command searches for a specified pattern in a file (or files) and displays in output lines containing that pattern as follows.
$ grep ‘tecmint’ domain-list.txt
groups command displays all the names of groups a user is a part of like this.
$ groups $ groups tecmint
Gzip helps to compress a file, replaces it with one having a .gz extension as shown below:
.gz
$ gzip passwds.txt $ cat file1 file2 | gzip > foo.gz
gunzip expands or restores files compressed with gzip command like this.
$ gunzip foo.gz
head command is used to show first lines (10 lines by default) of the specified file or stdin to the screen:
# ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
history command is used to show previously used commands or to get info about command executed by a user.
$ history
hostname command is used to print or set system hostname in Linux.
$ hostname $ hostname NEW_HOSTNAME
hostnamectl command controls the system hostname under systemd. It is used to print or modify the system hostname and any related settings:
$ hostnamectl $ sudo hostnamectl set-hostname NEW_HOSTNAME
hwclock is a tool for managing the system hardware clock; read or set the hardware clock (RTC).
$ sudo hwclock $ sudo hwclock --set --date 8/06/2017
hwinfo is used to probe for the hardware present in a Linux system like this.
$ hwinfo
id command shows user and group information for the current user or specified username as shown below.
$ id tecmint
ifconfig command is used to configure a Linux systems network interfaces. It is used to configure, view and control network interfaces.
$ ifconfig $ sudo ifconfig eth0 up $ sudo ifconfig eth0 down $ sudo ifconfig eth0 172.16.25.125
ionice command is used to set or view process I/O scheduling class and priority of the specified process.
If invoked without any options, it will query the current I/O scheduling class and priority for that process:
$ ionice -c 3 rm /var/logs/syslog
iostat Command
iostat is used to show CPU and input/output statistics for devices and partitions. It produces useful reports for updating system configurations to help balance the input/output load between physical disks.
$ iostat
ip command is used to display or manage routing, devices, policy routing and tunnels. It also works as a replacement for well known ifconfig command.
This command will assign an IP address to a specific interface (eth1 in this case).
$ sudo ip addr add 192.168.56.10 dev eth1
iptables is a terminal based firewall for managing incoming and outgoing traffic via a set of configurable table rules.
The command below is used to check existing rules on a system (using it may require root privileges).
$ sudo iptables -L -n -v
$ iw list
$ iwlist wlp1s0 scanning
$ kill -p 2300 $ kill -SIGTERM -p 2300
$ killall firefox
$ kmod list
$ last
$ ln -s /usr/bin/lscpu cpuinfo
$ locate -b '\domain-list.txt'
$ sudo login
$ ls -l file1