Close Menu
  • Home
  • Questions
Facebook X (Twitter) Instagram
LinuxTutorials.netLinuxTutorials.net
  • Home
  • Debian
  • Ubuntu
  • CentOS
    • Commands
  • Questions
LinuxTutorials.netLinuxTutorials.net

Consider the following value of PATH variable: /bin:/usr/local/sbin:/home/joe/bin:/home/joe/test Joe modifies the my_scr.sh script, which is stored in the directory /home/joe/bin then places a copy of my_scr.sh in /home/joe/test. Executing my_scr.sh will:

January 27, 2024No Comments
DWQA Questions › Category: Introduction to Linux II › Consider the following value of PATH variable: /bin:/usr/local/sbin:/home/joe/bin:/home/joe/test Joe modifies the my_scr.sh script, which is stored in the directory /home/joe/bin then places a copy of my_scr.sh in /home/joe/test. Executing my_scr.sh will:
Consider the following value of PATH variable: /bin:/usr/local/sbin:/home/joe/bin:/home/joe/test Joe modifies the my_scr.sh script, which is stored in the directory /home/joe/bin then places a copy of my_scr.sh in /home/joe/test. Executing my_scr.sh will:
  • Run the original version of the script in the /home/joe/bin directory
  • Check the timestamp and run the latest version of my_scr.sh
  • Not run at all, reports error
  • Run the new version of the script placed in /home/joe/test

Please login or Register to submit your answer

Share. Facebook Twitter Tumblr Email Telegram
Previous ArticleThe command PATH=$PATH:/home/John does the following:
Next Article The _ command can be used to check if the command already exists.

Ubuntu Server 24.04 Image for VirtualBox (Download & Import)

March 14, 2025

Download and Install Packet Tracer 8.2.2 on Ubuntu (Linux)

May 31, 2024

How to Install PHPMyAdmin latest version 5.2.0 on Ubuntu 22.04 (LEMP Stack)

September 13, 2022

Create New User with sudo Privileges on Ubuntu 22.04/Debian

September 12, 2022
Facebook X (Twitter) Instagram Pinterest
  • Questions
© 2025 LinuxTutorials.net

Type above and press Enter to search. Press Esc to cancel.