How to solve the problem that the Linux cd command enters the xargs pipeline output directory error

  
                

Recently, some netizens found that when using the cd command, they can't enter the directory output by the xargs pipeline. If there is an error, then you can use the modify command to solve this problem. Let's understand the specific operation. Let's go.

[environment] Description

The directory structure:

[root @ test1 nagiosclient_db] # ls -ltr

total 2488

-rw-r--r--. 1 root root 405725 Mar 3 14:12 nrpe-2.12.tar.gz

-rw-r--r--. 1 root root 2095419 Mar 3 14:12 nagios-plugins-1.4.15.tar.gz

drwxrwxrwx. 16 501 root 4096 Mar 3 14:36 ​​nagios-plugins-1.4.15

Drwxrwxr-x. 7 500 500 4096 Mar 3 14:37 nrpe-2.12

Get the required directory:

[root@test1 nagiosclient_db]# ls

Copyright © Windows knowledge All Rights Reserved