In your shell, there is a history of the commands that you
previously entered, you can actually look through these commands. This is quite
useful when you want to find and run a command you used previously without
actually typing it again.
You can use ‘!!’ command to run the previous command without
typing it again. After running the history command, if you want to run any
command using the command number, you can type ‘!command number’.
Clear command will clean up your screen.
One of the most useful features in any command-line environment is tab completion. If you start typing at the beginning of a command, file, directory, etc., and hit the Tab key, it will autocomplete based on what it finds in the directory you are searching for as long as you don’t have any other files that start with those letters. For example, if you were trying to run the command myfile, you can type ‘myf’and press Tab and it will autocomplete myfile.
4. uname command
uname (short for unix name) is a computer program in Unix and
Unix-like computer operating systems that prints the name, version and other
details about the current machine and the operating system running on it.
devopsgurukul 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) x86_64
5. mkdir command
The mkdir command (Make Directory) is useful
for that, it will create a directory if it doesn’t already exist. You can even
make multiple directories at the same time.
root@devopsgurukul:~# mkdir books paintings
You can also create subdirectories at the same
time with the -p (parent flag).
The series of introducing new commands will continue like this. These are very basic commands which will help you to use Linux and learn it. DevOps Gurukul is one of the best training academies which provides Linux courses in Kochi and the Best online Linux Course in Kerala. We have experienced training professionals who are passionate about grooming the right candidates to start their successful careers. Come learn with us and have a bright future!