Part - 2:-
Q) Which command will show details login of different users in Unix OS?
Ans - $ who<Enter - Key>
Q) What are the columns present in above command ?
Ans - There are three columns present in the above command.
1. Login User Name
2. Terminal Number
3. Logged in time
Q) Which command will show detail login of own user ?
Ans - $who am i<Enter - Key>
Q) What are the output columns of the above command ?
Ans - There are three columns present in the above command.
1. Own Login User Name
2. Own Logged in Terminal Number
3. Own Logged in time to Unix OS
Q) How are you know about own user logged in name ?
Ans - $ whoami<Enter - Key>
Q) How you know last boot time of system ?
Ans - $ who -b<Enter - Key>
Q) How you know number of lines, words and characters in a file ?
Ans - $ wc filename<Enter - Key>
The output of the command contains number of characters, number of words and number of lines of
the file.
Q) How to see number of lines in a file ?
Ans - $ wc -l <File Name><Enter - Key>
Q) How to see number of characters in a file ?
Ans - $ wc - c <File Name><Enter - Key>
Q) How to see number of words in a file ?
Ans - $ wc -w <File Name><Enter - Key>
Q) What is file descriptors (FD) in Unix ?
Ans - File Descriptor is used to access a file or other input/output resource, such as a pipe or network socket.
Q) What are file descriptors ?
Ans - There are three file descriptors.
1. Standard Input (0)
2. Standard Output (1)
3. Standard Error (2)
Q) Which command will show details login of different users in Unix OS?
Ans - $ who<Enter - Key>
Q) What are the columns present in above command ?
Ans - There are three columns present in the above command.
1. Login User Name
2. Terminal Number
3. Logged in time
Q) Which command will show detail login of own user ?
Ans - $who am i<Enter - Key>
Q) What are the output columns of the above command ?
Ans - There are three columns present in the above command.
1. Own Login User Name
2. Own Logged in Terminal Number
3. Own Logged in time to Unix OS
Q) How are you know about own user logged in name ?
Ans - $ whoami<Enter - Key>
Q) How you know last boot time of system ?
Ans - $ who -b<Enter - Key>
Q) How you know number of lines, words and characters in a file ?
Ans - $ wc filename<Enter - Key>
The output of the command contains number of characters, number of words and number of lines of
the file.
Q) How to see number of lines in a file ?
Ans - $ wc -l <File Name><Enter - Key>
Q) How to see number of characters in a file ?
Ans - $ wc - c <File Name><Enter - Key>
Q) How to see number of words in a file ?
Ans - $ wc -w <File Name><Enter - Key>
Q) What is file descriptors (FD) in Unix ?
Ans - File Descriptor is used to access a file or other input/output resource, such as a pipe or network socket.
Q) What are file descriptors ?
Ans - There are three file descriptors.
1. Standard Input (0)
2. Standard Output (1)
3. Standard Error (2)
No comments:
Post a Comment