The whereis command in Linux is used to locate the binary, source, and manual page files for a command. This command searches for files in a restricted set of locations (binary file directories, man page directories, and library directories). It is usually used to find executables of a program,
To determine the file type in Linux, we can use the file command. This command runs three sets of tests: the filesystem test, magic number test, and language test. The first test that succeeds causes the file type to be printed. For example, if a file is a text
wc (short for word count) is a command in Linux that displays a count of lines (newline characters, to be precise), words, and bytes for each file you specify. The program prints these three numbers for each file you specify. For example, to find out how
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
If you’re trying to arrange a party or group trip, texting each person individually can be seriously time-consuming and iOS doesn’t offer an easy way to make a contact group on an iPhone. Luckily, creating contact groups the way Apple intended is as easy as pie
Java has standard way to get line separator regarding platform which executes Java code. It is called System.lineSeparator() .
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
To store dynamically-sized elements in Java, we used ArrayList. Whenever new elements are added to it, its increase their size automatically. Key Points of an ArrayList An ArrayList is a re-sizable array, also known as a dynamic array. It raises its size according to
The first thing, which I am going to show you – how you can easily return lambda as a return type. This is example is very simple and you could adjust it regarding your needs with your domain objects, etc. We are using java.util.function.Function<T,
If we want to see, which docker containers are stopped or we need to find ID of container, which we want to start, we could do that: docker ps --filter "status=exited" or docker ps -f "status=exited"