Blog Archives

Unix sed & awk commands in action

This extends sed and awk to write shell scripts for Java developers. Q2 Can you explain the following Unix command?

A2 The “date” prints the date and time. The “ps -ef” outputs all the running processes with the UID (user ids) as shown below:

The “awk ‘{ print

Read more ›

Posted in Unix Interview Q&As

♥ Hidden Unix, Git & SVN config files

You need to use “ls -la” to list the hidden files in your home (i.e ~) directory. These config files are “.bashrc”, “.inputrc”, “.profile”, etc. In computing, a hidden folder or hidden file is a folder or file that does not display by default when showing a directory/file listing. In

Read more ›

Posted in Unix Interview Q&As

Unix Sed commands for Java developers

sed (stream editor) is one of the powerful workhorse commands in UNIX. Recently I had to use it with “Git” and “Maven” to find text “SNAPSHOT” in all pom.xml files, and manually update them with a realease version like 1.0.2 without the suffix “SNAPSHOT”. Here is the command that I

Read more ›

Posted in Tools, Unix Interview Q&As, Unix Tutorial

Unix history commands for Java developer productivity

When you are using Linux/Unix command line frequently, using the history effectively can be a major productivity boost. You can accomplish things with less typing. For example, you will be typing lots of commands like

and so on. There are 6 ways to repeat your previous commands quickly without

Read more ›

Posted in Tools, Unix Interview Q&As

sed and awk to write shell scripts for Java developers

Q. How would you go about replacing a piece of a text or a phrase from 20,000+ web templates residing on a Unix file system? Even some candidates with 5+ years of experience will be tempted to spend a day or two to write 200+ lines of code to achieve…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Feel free to evaluate the quality of the contents Free FAQs | HomeTry Log In | Register
Posted in member-paid, Tools, Unix Interview Q&As

Unix remoting interview Q&A for Java developers

Q1 How will you delete files that are older than 7 days in a remote unix server? A1 By ssh ing to the remote host server

Q2 How will you copy files from a remote server to a local server? A2 By scp ing (i.e. secured copying) to the…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Feel free to evaluate the quality of the contents Free FAQs | HomeTry Log In | Register
Posted in member-paid, Tools, Unix Interview Q&As, Unix Tutorial

Shell script interview Q&A for Java developers

Q1 How will you go about reading a CSV file as shown below?

A1

Q2 How will you read and then write to another file?

A2

Q3 How will you read the file and then write to another file with CSV data in different order?

…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Feel free to evaluate the quality of the contents Free FAQs | HomeTry Log In | Register
Posted in member-paid, Unix Interview Q&As, Unix Tutorial

♥ 14 Unix interview questions & answers for Java developers

Q1 How do you remove the Control-M characters from a file? A1 Using the sed command that replaces Control-M with nothing

Note: The ^M is typed on the command line with ctrl+v and ctrl+M

Q2 How will you search for a property named “inbox” within a number of

Read more ›

Posted in Tools, Unix Interview Q&As, Unix Tutorial
Tags: ,

Take the road less travelled

Fast-track by empowering yourself to choose from multiple job offers, open more doors and increase your earning potential.

800+ Java Interview Q&As – ♥ Free | ♦ FAQs

open all | close all

Pressed for time? 200+ Quick Prep

open all | close all

16 Java Key Areas to be a top-notch

open all | close all

100+ Java Tutorials – Step by step

open all | close all

100+ Java Coding Exercises

open all | close all

How good are your

open all | close all