In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the exec command in Linux. It is very detailed and has a certain reference value. Friends who are interested must finish it!
Using the exec command on the Linux system does not start the new Shell, but replaces the current Shell process with the execute command, and cleans up the environment of the old process, and other commands after the exec command will no longer be executed.
Syntax format exec [parameters]
Common parameter:-c executes the specified command in an empty environment
The reference example first uses the echo command to change the text "Welcome to use Linux!" Output:
[root@linux265 ~] # echo Welcome to use Linux! Welcome to use Linux! Then use the exec command to invoke the echo command to output the same information, and compare the output information:
[root@linux265 ~] # exec-c echo Welcome to use Linux! Welcome to use Linux! Find the files belonging to the Jaking user and copy them to the / findfiles directory:
[root@linux265 ~] # find /-user Jaking-exec cp-Ra {} / findfiles\; above is all the content of the article "how to use exec commands in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.