Pages

Wednesday, June 28, 2017

10 Lesser Known Useful Linux Commands- Part V

After four highly appreciated and such a successful series of Articles on “Lesser Known Linux Commands” we are here presenting you the last article on this series, obviously not the least. The previous articles are:
Lesser Known Linux Commands
Lesser Known Linux Commands
  1. 11 Lesser Known Useful Linux Commands – Part I
  2. 10 Lesser Known Linux Commands – Part II
  3. 10 Lesser Known Commands for Linux – Part III
  4. 10 Lesser Known Effective Linux Commands – Part IV

42. lsb_release

The command ‘lsb_release‘ print distribution-specific information. If lsb_release is not installed, you can apt ‘lsb-core‘ on Debian or yum ‘redhat-lsb‘ on Red Hat the package.
# lsb_release -a
LSB Version:    :base-4.0-ia32:base-4.0-noarch:core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:
Distributor ID: CentOS
Description:    CentOS release 6.3 (Final)
Release:        6.3
Codename:       Final
Note: Option ‘-a‘, shows all the available information in respect of versioniddescriptionrelease and codename.

43. nc -zv localhost 80

Check if port 80 is open or not. We can replace ‘80‘ with any other port number to check if it is opened or closed.
$ nc -zv localhost 80
Connection to localhost 80 port [tcp/http] succeeded!
Check if port 8080 is open or not.
$ nc -zv localhost 8080
nc: connect to localhost port 8080 (tcp) failed: Connection refused

44. curl ipinfo.io

The below command will output the ‘Geographical Location‘ of the IP address, provided.
$ curl ipinfo.io 
"ip": "xx.xx.xx.xx",
"hostname": "triband-del-aa.bbb.cc.ddd.bol.net.in",
"city": null,
"region": null,
"country": "IN",
"loc": "20,77",
"org": "AS17813 Mahanagar Telephone Nigam Ltd."

45. find . -user root

The below command output the files with respect of the user (root) owned files. All the files owned by user ‘root’ in the current directory.
# find . -user root
./.recently-used.xbel
./.mysql_history
./.aptitude
./.aptitude/config
./.aptitude/cache
./.bluefish
./.bluefish/session-2.0
./.bluefish/autosave
./.bash_history
All the files owned by user ‘avi‘ in the current directory.
# find . -user avi
./.cache/chromium/Cache/f_002b66
./.cache/chromium/Cache/f_001719
./.cache/chromium/Cache/f_001262
./.cache/chromium/Cache/f_000544
./.cache/chromium/Cache/f_002e40
./.cache/chromium/Cache/f_00119a
./.cache/chromium/Cache/f_0014fc
./.cache/chromium/Cache/f_001b52
./.cache/chromium/Cache/f_00198d
./.cache/chromium/Cache/f_003680

46. sudo apt-get build-dep ffmpeg

The below command will build the dependency, automatically during the corresponding package installation. Hence the process of package installation is very much fluent and easy.

      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
                                                    ► Read more: http://adf.ly/1nBUyI
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

No comments:

Post a Comment