Linux mastery : pwd


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

pwd

pwd is command which return the current working directory. This command is helpful when doing projects and scripting tasks.

Linux : history of command


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

history

history is a Linux command fetch a list of commands used in terminal. You can specify number of commands want to display

$ history
$ history 5

Following Linux manuals may help you

Linux : accessing the BIOS clock


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

hwclock

hwclock is a command which provide hardware clock information. Hardware / BIOS clock works even when the system remain in shut down state.

$ sudo apt install locate

Following Linux manuals may help you

Linux : find a file using locate


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

locate

locate is a command used to find files with specific name, extensions etc in Linux. It also capable of limiting search queries. The command may not available on Linux distributions such as Ubuntu, but can be add using the following command

$ sudo apt install locate

Following Linux manuals may help you

Linux : uptime


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

uptime

uptime is a Linux command help admins to find how long the system is running, number of users, running state and the load time.

$ w

Following Linux manuals may help you

Linux : `w` for monitoring users


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

w

w is a Linux command help admins to show logged user information such as processes, how long they are using the system etc. The command is must have for every super Linux user.

$ w

Following Linux manuals may help you

Linux : find path of a command


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

which

which is a Linux command used to locate the path of a program / executable. It will be helpful to find the path of program. For example the following command will locate the path of the Python3 and print to the screen

$ which python3
//output
/usr/bin/python3

Following Linux manuals may help you

Linux : loop commands using ‘while’


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

while

If you are familiar with C/C++ or any programming language, may know what a while loop is does. While is a Linux command to help us to execute commands until the given condition return (command) is false

$ while
  commands;
do command ;
done

Following Linux manuals may help you

Linux : send a message to user


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

write

write is a Linux command used to send message to logged in user. You can install the command using sudo apt install write in Ubuntu

$ write admin please-restart-the-docker-container

* Her admin is the user

Following Linux manuals may help you

Linux : create command with xargs


In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.

Follow us and start learning Linux today

xargs

xargs is a Linux command used to build and execute commands from standard input. It can read arguments from file as well. The command may helpful for system admin.

$ xargs [options] [command]

Following Linux manuals may help you