[email protected]Support 24/7 · Billing 09:00 – 00:00LinkedInXFacebook
NexonHost
Netherlands Dedicated ServersAmsterdam · Equinix AM6Germany Dedicated ServersFrankfurt · Equinix FR4Romania Dedicated ServersBucharest · VoxilityAustria Dedicated ServersVienna · Interxion VIEBulgaria Dedicated ServersSofia · TelepointFrance Dedicated ServersParis · Interxion PAR — Marseille · Digital Realty MRS3Ireland Dedicated ServersDublin · Equinix DB2Italy Dedicated ServersMilan · Irideos AvalonPoland Dedicated ServersWarsawSpain Dedicated ServersMadrid · Equinix MD2United States Dedicated ServersAshburn · Equinix DC
All articles
Getting startedSeptember 15, 2023

How to use look command in Linux.

How To Use Look Command.

The look command in Linux shows the lines beginning with a given string. This command also uses binary search if the file is sorted. If file is not specified, the file /usr/share/dict/words is used. And then only the alphanumeric characters are compared and the case of alphabetic characters is ignored.

Syntax:

look [-bdf] [-t termchar] string [file ...]

Options:

  • -[string]: This option is used to search for the given string in a specified file.

  • Example:

  • look "include" Assignment.c
  • -f : This option is used to ignore case of alphabetic character.

  • Example:

  • look -f ab words
  • -t: This option is used to specify a string termination character, i.e., only the characters in string up to and including the first occurrence of character are compared.

  • Example:

  • look -t b abu words
  • -d: This option is used to compare only alphanumeric characters.

  • Example:

  • look -d ab words
  • -bd, -bf: This option uses binary search on the given word list. If you are ignoring case with -f or ignoring non-alphanumeric characters with -d, the file must be sorted in the same way.

  • Example:

  • look -bf ab words
  • -h: This option is used to show the help message and exit.

  • look -h
  • -V: This option is used to show the version information and exit.

  • look -V
Keep reading
How to use nc command.
May 2, 2023

How to use nc command.

How To Use nc Command Netcat (or nc) is a command-line utility that reads and writes data across network connections, using the TCP or UDP protocols. It is one of the most powerful tools in the network and system administrators arsenal, and it as considered as a Swiss army knife of networking tools.

Read article
How to use which command.
May 2, 2023

How to use which command.

How to use which command. In this tutorial, we will cover the Linux which command. Linux which command is used to identify the location of a given executable that is executed when you type the executable name (command) in the terminal prompt. The command searches for the executable specified as an…

Read article
How to Move Files and Directories in Linux with mc command.
May 2, 2023

How to Move Files and Directories in Linux with mc command.

How to Move Files and Directories in Linux with mc command. In this tutorial, we will explain how to use the mv command to move files and directories. Moving files and directories is one of the most basic tasks you often need to perform on a Linux system. How to Use the mv Command…

Read article
Get in Touch

Together, Let’s Build a Faster, Safer Internet.

Build scalable infrastructure with NexonHost — high-performance dedicated servers, VPS hosting, cloud hosting, and DDoS protection across Europe.

Get Started →Contact Us
[email protected]Support 24/7 · Billing 09:00 – 00:00