What is the output of the following code:
os=Unix
echo 1.$os 2."$os" 3.'$os' 4.$os
which of these is NOT a valid variable in bash
What would be the current working directory at the end of the following command sequence?
$ pwd
/home/user1/proj
$ cd src
$ cd generic
$ cd .
$ pwd
What will be output of following command:
$ echo "The process id is" $$$$
‘kill %s’ command will
One of the entry of /etc/passwd file is shown below:
user1:x:1111:2222:Sanfoundry:/home/user1:/bin/bash
Which among the following will print userid and home dir in the following pattern “user1:/home/user1”
How do you remove duplicate lines from the file foo using uniq?
The permission -rwxr-xr-t represented in octal expression will be
Sticky bit can be set using following permission
What is the command to set the execute permissions to all the files and subdirectories within the directory /home/user1/direct
If the umask value is 0002. what will be the permissions of new directory
A user does a chmod operation on a file. Which of the following is true?
If user tries to remove (rm) a readonly file (444 permission), what will happen?
To open a file file1 with cursor at line number 4
Which command gives the first byte where the difference is in the file1 & file2?
Which is the core of the operating system?
What command is used to copy files and directories?
How do you rename file “new” to file “old”?
Executing the ‘cd ..’ command when at the root level causes
How to execute ls command inside a vi editor?