What is Path variable?What is its use?
Answer / guest
PATH is an environment variable.
It contains the sequence of paths seperated by colons(:)
when we enter commands on the prompt the shell first checks
that coorresponding program to execute in those paths
specified in PATH variable.
We can print that sequnece by typing
echo $PATH
| Is This Answer Correct ? | 8 Yes | 0 No |
How will you emulate wc –l using awk?
Where cron file kept?
write a program to display all the files from the current directory which are created in particular month
What is path in shell script?
What is the syntax of while loop in shell scripting?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
c program to check whether all the directories in the path exists has read and write permission
Suppose you execute a command using exec, what will be the status of your current process in the shell?
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"
How to get the first line from a file using just the terminal?
What is a file basename?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1