Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Thursday, July 28, 2022
Difference between table scan, index scan, and index seek in SQL Server Database? Example
How to find Nth Highest Salary in MySQL and SQL Server? Example LeetCode Solution
---------------------------------------------------------------
Write a SQL query to get the nth highest salary from the Employee table.
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
For example, given the above Employee table, the nth highest salary where n = 2 is 200. If there is no nth highest salary, then the query should return null.
Wednesday, July 27, 2022
10 Examples of df Command in Linux and UNIX
What does df mean?
The meaning of df in Linux is disk-free or disk file system. Which is used to display the file system in the likes of total storage space, available storage space and etc.
Df command in Linux is a command or syntax in Linux that you doing away with it is almost impossible
You may begin to wonder or ask Why or When do You need to use it?
How to use recursive grep command in Linux and UNIX? grep -iR Example tutorial
Difference between Soft Link vs Hard Links in Linux/UNIX? Answer
6 Linux command Examples and One liners Every Programmer Should Remember
How to Find large Files and Directories with size in Linux and UNIX? find + du command Example Tutorial
Monday, July 25, 2022
How to send Email with Body and Attachment from Linux Machine? mutt and mailx command Example
How to set JAVA_HOME and PATH in Linux? Example
How to backup and load Cron Jobs from a File in Linux and UNIX? Crontab Command Example
How to find swap space and usage in Solaris? Swap Command Example
How to send Logging Messages to SysLog using Log4j2 SysLogAppender in Linux ? Java Example
5 Ways to implement Singleton Design Pattern in Java? Examples
How to use Strategy Design Pattern in Java? Example Tutorial
Friday, July 22, 2022
10 Examples Of du Command in Linux
Here, we shall be looking at another command in Linux. The” du” command. Before giving the examples you can use with it I will be explaining the du itself, What is being used for and When to use it, and How to use it
So Firstly, What is DU or What does the command mean?
The full meaning of du is Disk usage. This helps in planning and maintaining the file’s space. The command is used to keep track of any files or directories that are taking up too many spaces in the hard disk drive. Now we shall be taking the examples one after the other.
Thursday, July 21, 2022
3 Examples of for loop in Linux and Bash Script [Tutorial]
10 ways to Quit/Exit from Vim Editor in Linux/UNIX? Examples
10 Example of ps -ef command in Linux and UNIX
10 Examples of df Command in Linux
Hello, In Today’s article we shall be talking about the df command in Linux. The objectives of this article are: What is the df command, and what does it mean? How is it used? I shall be providing 10 different examples or scenarios for it and when to use it
What does df mean?
The meaning of df in Linux is disk-free or disk file system. Which is used to display the file system in the likes of total storage space, available storage space and etc.
Df command in Linux is a command or syntax in Linux that you doing away with it is almost impossible
You may begin to wonder or ask Why or When do You need to use it?