On UNIX systems, there is one very ancient command called dd. It is designed to copy something somewhere byte-by-byte we will learn How to use dd command in Linux in this article.

Last Updated on by Kalitut Leave a Comment
On UNIX systems, there is one very ancient command called dd. It is designed to copy something somewhere byte-by-byte we will learn How to use dd command in Linux in this article.
Last Updated on by Walid Salame 1 Comment
Last Updated on by Kalitut 7 Comments
The most essential Linux commands
Keep this Linux cheat sheet on your desk printed,
it will help you to learn them quickly and become a Linux expert very soon.
Click on the image to open at full size
File Commands
The linux ls command lists files and directories within the current working directory.
ls - directory listing
ls -al - formatted listing with hidden files
2) The cd Linux command changes the current directory in Linux and can toggle between directories conveniently.
cd dir - change directory to dir
cd - change to home
3) The pwd Linux command (print working directory) command displays the name of the current working directory.
pwd - show current directory
bc utility is surely one of the underdogs when it comes to calculations on command line.
It’s a feature rich utility that has its own fan base but needs time to get comfortable with
bc
have up to 99 decimal digits before and after the decimal point. This limit has been greatly surpassed in GNU bc
. I don’t know what that limit is, but it’s at least many, many tens of thousands. Certainly it’s more than any GUI-based calculators (I’ve used) could accomodate.Last Updated on by Kalitut Leave a Comment
basename command in Kali Linux
Description
Basename is a simple command which returns the file name string without any path info and it is mostly used in shell scripts.
It can also remove the file extension, and return only the file name without an extension.
The syntax of basename command is as follows,
basename String [ Suffix ]
basename OPTION string – input string Suffix – string needs to be removed from the input
Options
-a, –multiple
support multiple arguments and treat each as a NAME.
-s, –suffix=SUFFIX
remove a trailing suffix SUFFIX, such as a file extension.
-z, –zero
separate output with NUL rather than a newline.
–help
display help information and exit.
–version
output version information and exit.
Examples
basename /usr/bin/sort
Outputs the string “sort”.
basename include/stdio.h .h
Outputs the string “stdio”.
basename -s .h include/stdio.h
Outputs the string “stdio”.
basename -a any/str1 any/str2
Outputs the string “str1” followed by the string “str2”.