1. Write a program to print details of currently logged in users, print date and calendar? #/bin/bash echo "Current login us…
Read moreTo show the full path of shell commands found in your path which <command name> eg: which grep //output like: /bi…
Read moreTo find the type of a file file <file name> To create a file cat > filename.txt //type the contents and press Ctrl+D to …
Read moreTo print working directory pwd To change directory To return to home directory cd To change into specified directory name cd <direc…
Read moreTo get help on commands help <command name> eg: help cat <command name> --help eg: grep --help <com…
Read moreDirectory Description The nameless base of the file system. All other directories, files, drives, and devices are …
Read moreCharacter Description \ Escape character. If you want to reference a special character, you must “escape” it with a bac…
Read moreclass Threading { public static void main(String[] args) { /* Method No.1 Counter ctr = new Co…
Read moreimport java.net.*; import java.io.*; public class Client1 { public static void main(String[] args) throws Ex…
Read moreimport java.io.*; public class Student implements Serializable { private int rollNo; private String name; transient int age; public Student(i…
Read moreimport java.io.*; class TestFile { public static void main(String[] args) throws Exception { File file = new File(args[0]); System.out.println(f…
Read moreimport java.io.*; public class MoveFile { public static void main(String args[]) throws IOException { switch (args.length) { case 0: Syste…
Read moreimport java.io.*; public class CopyFile { public static void main(String[] args) throws IOException { switch (args.length) { case 0: Syste…
Read moreimport java.io.*; public class WriteFile { public static void main(String args[]) throws IOException { if (args.length != 0) { File file …
Read moreimport java.io.*; public class ShowFile { public static void main(String args[]) throws IOException { if…
Read more