Bash Basics
Bash is a commonly used language on most Linux System. The name Bash stands for ‘Bourne Again SHell’. It is developed as a replacement/improvement for Bourne Shell(sh).
Bash is a commonly used language on most Linux System. The name Bash stands for ‘Bourne Again SHell’. It is developed as a replacement/improvement for Bourne Shell(sh).
type
display information about command type on Linux, whether it is a builtin, alias, or file.
hostname
- show or set the system’s host name or domain name
killall
- Send kill signal to all instances of a process by name (must be exact name)
kill
- terminate a process by sending a signal.
top - display dynamic real-time view of the system summary info as well as a list of tasks currently being managed by the Linux kernel.
wc
- print newline, word, and byte counts for each file
ps
- display current processes. ps is short for Process Status.
id
- display current user and group identity.
su
- Switch shell to another user.
who
- display who is logged in and related data(processes, boot time).
whoami
- Print the username associated with the current effective user ID.
Commands to create, delete, and modify groups.
zip
- Package and compress (archive) files into zip file. You can use zipinfo
command to list the files in zip format.
gzip
- Compress/uncompress files with gzip compression. Compression reduces disk usage and transfer time. gzip is commonly used. the file created by gzip has ‘.gz’ extension.