which and whatis command in linux | Pro Tech guides

which and whatis command in linux

linux command which allows you to find the location of any commands in linux. And whatis command allows you to show the short description.

which and whatis command in Linux | with Examples

which and whatis command in linux
which and whatis command

Hello, guys welcome to the next session on Linux command line tutorial. In this session, I'm going to show you how you can use "which command" and "whatis command" in Linux.

First of all,

what is "which command" and how you can use it?

The "which command" is used to return the path-name of a "file" or a "command" which we use with this "which command".

"which" command

which command in linux
"which" command

$which command Name
Let's see how you can use it. So to use the "which command" you just need to write "which command name".

For example "which ls" press ENTER and this will give you the location of this "ls" command.

This "which command" will help you whenever you will be writing much of the "bash scripting".

And in "bash scripting" it's a good practice to use the full path of the command line name.

So instead of using "ls" in bash scripting use "/bin/ls". Which is the full location of this "ls" command.

Sometimes whenever you use your script in the different operating system some recognizes your "ls" Command.

Some want you to give the full path of the Command.

"whatis" command

whatis command in linux
"whatis" command

$whatis command Name
So let's see how we can use "whatis" command.

"whatis" command is going to display the short manual page description.

So just say "whatis ls" and press ENTER.

This "whatis" command is going to return you a short description of this "ls" command.

Conclusion

So this is how you can use "which" and "what is" command in Linux.

I hope you have enjoyed this tutorial please rate comment and bye.

HAVE A NICE DAY💖

Name

Apps,3,Games,1,Linux,38,Linux Commands,37,Network-Devices,1,Networking,1,Terminal Apps,2,Termux,17,Userland,3,Windows,1,
ltr
item
Pro Tech guides: which and whatis command in linux
which and whatis command in linux
linux command which allows you to find the location of any commands in linux. And whatis command allows you to show the short description.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEG9cYyAMic91trm6csf_PaB86uLI3ZXL87vm6aFisv8UqWejbR6gKGk8CXal2qF3xM0qEuy2umKcrHvUTAOnAm_5IswEKy4JO8ZcwgnGpvPwQDZAzJOOqo3Pa-mWSOwtpSdoXEE-dKzA/s16000/whatis-command.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEG9cYyAMic91trm6csf_PaB86uLI3ZXL87vm6aFisv8UqWejbR6gKGk8CXal2qF3xM0qEuy2umKcrHvUTAOnAm_5IswEKy4JO8ZcwgnGpvPwQDZAzJOOqo3Pa-mWSOwtpSdoXEE-dKzA/s72-c/whatis-command.jpg
Pro Tech guides
https://devops-digest.blogspot.com/2021/01/which-and-whatis-command-in-linux.html
https://devops-digest.blogspot.com/
https://devops-digest.blogspot.com/
https://devops-digest.blogspot.com/2021/01/which-and-whatis-command-in-linux.html
true
7053638852026728047
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content