linux Archive

Sort lines of a text file

The sort command is used to sort the lines of a text file in Linux. You can provide several command line options for sorting data in a text file. Here is an example file: To sort the file in alphabetical order, we can use the sort command without any options: To sort in reverse, we can use the -r option: To

How to check OpenSSH version on Linux?

Using Linux – let’s open terminal and enter ssh -v localhost or ssh -V to check the OpenSSH version which is currently installed. __________________________________________________________ $ ssh -v localhost OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to localhost port 22. ssh: connect to host localhost port 22: Connection refused