In Unix operation system , Answer the Questions
Question 1: Write the command to search an user with name Honda , who has already been created ....... ?
Solution: grep'^Honda' /etc/passwd is the command to search an user with name Honda.
Question 2: Write the command to rename the file F4 to file4 ..?
Solution: mv f4 file4 this command is used to rename. UNIX OS uses the same mv command to move and rename the files.
Question 3: Write the command to search a file having i-node number 3456 ...?
Solution: find /path/to/mountpoint -inum <inode number> this can be used to search a file using i-node number.
Question 4: Write a command to display all file in sorted order based on their names ...?
Solution: ls -la
or
ls -lA
is the command used to display all files in sorted order based on their names.
No comments:
Post a Comment