0

How to Display Only the files in a location On CentOS

Hello,I just want to dispaly the files alone by excluding the hidden files and directories.how can be done that

CentOS find files Add a comment
elijah
asked Dec 19 2019

Answer

0

To display the files alone.the following command can be used

[root@linuxhelp1 ~]# ls -lp | grep -v /
total 13468
-rw-------.  1 root root     1693 Nov  9 18:57 anaconda-ks.cfg
-rw-r--r--   1 root root        0 Dec 17 14:33 files1
-rw-r--r--   1 root root        0 Dec 17 14:33 files2
-rw-r--r--   1 root root        0 Dec 17 14:33 files3
-rw-r--r--   1 root root        0 Dec 17 14:33 files4
-rw-r--r--   1 root root        0 Dec 17 14:33 files5
-rw-r--r--.  1 root root 13753112 Oct 30 20:35 ImageMagick.tar.gz
-rw-r--r--.  1 root root     1741 Nov  9 19:24 initial-setup-ks.cfg
-rw-r--r--.  1 root root    17908 Sep  6 12:05 remi-release-7.rpm
-rw-r--r--   1 root root       60 Dec 17 14:36 test
Add a comment
linuxhelp
asked Dec 19 2019
Post your Answer