Home > OS >  How to enter a directory under Linux, the only folder
How to enter a directory under Linux, the only folder

Time:09-16

A data folder, for example, under the data/only one folder, but uuid encoded string is the name of the folder, so there will be a different folder name every time calculation, is not fixed, therefore in the process of writing scripts, don't know how to CD to enter the name of the uuid folder, consult a great god!

CodePudding user response:

CD $(ls - ld/data/* | awk '{print $NF}')

CodePudding user response:

CD data/*

CodePudding user response:

CD data/*
Only one folder, can province is ah
  • Related