UNIX/Linux Programming Answers

Questions: 170

Answers by our Experts: 135

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

  1. Write a shell script to read any file line by line in bash by using loop.

Write C program/ shell script which use few of the system calls directly.


  1. Write a shell script or C program to read all txt files (.txt) in the current directory and merge them all to one txt file and returns a file descriptor for the new file.
  1. Write a shell script to create a simple calculator.

Write a shell script program to find average of first N even numbers?


Write a menu driven shell script which accepts a number N and an option to calculate the average of: 

1. first ‘N’ odd numbers

2. first ‘N’ even numbers.


b)   Save the file and exit from the vi editor. c)    Open the vi editor without specifying a file name d)   Write some text and and save it to a file “MyData2.txt” e)    Repeat point ( c ) but after writing some text don’t save and just exit “vi” 2. Create a file using vi editor and enter the following text in it: a)    Save the file without exiting vi. b)   Display the line number from within vi c)    Move first three lines of the file to the end of the file. d)   Copy 5th line and paste above the first line. e)    Search the word Unix in forward direction f)    Search the word Unix in backward direction g)   Replace all the occurrences of the word Unix with UnixOS


1. Count the total number of words in file text1. 2. List the contents of ls command page wise.     3. Create a file FILE2 with some text in it. Increase the no. of hard links to the file FILE2 to 3 and check the inode number and link count for those names. 4. Using one single command, display the output of “who” and “pwd” commands. 5. Display the system date in following format: Today is Friday, 17 May 96  6. Display the following text message on the monitor screen.            

Deposited $100 to you account 7. Display the following message on the monitor. 

The long listing of my home dir …………  is …………       8. Use find command to locate the following within your home directory tree: a)    Files with extension .c or .pl b)   Directories having permission 755 c)    Files having permission 655 d)   Files having inode number 12122 e)    Files which have not been accessed for more than a year and save the list in Old_File  f)    Files whose size is greater than 1024 bytes


Write a shell script to reverse a number supplied by a user.


Write Shell script to perform operations like display, list, make directory and copy, rename, delete, edit file.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS