Wednesday, 26 May 2021

Basic UNIX Interview Questions -

 



1) Unix Command to Check 32 bit or 64 bit - 
      uname -m

2) find  30 days older files in a directory?
      use find along with -mtime 

3) Find the files inside the directory and subdirectories?

4) Finding duplicates in a file?
    use sort along with uniq

5) sort the file based on a certain column?
   sort command with -c 

6) Check if the files exist or not?
-f in if statement

7) Check if the file is greater than the 0 bytes?
-s in if statement

8) Difference between grep and find command?

9) No. of parameters passed in the script?
 $#

10) how to Check the Status of the last executed Command?
 $?

No comments:

Post a Comment

how to create dml dynamically in Ab-initio

 $[ begin let int i = 0; let string(int) complete_list = "emp_nm,billable,age,designation,location"; let string(int) file_content ...