A
A
AspMaster2019-10-06 18:14:43
linux
AspMaster, 2019-10-06 18:14:43

How to output files in linux directory but without extra information?

Linux has an ls command that displays information about files in a directory. how can i specify what kind of file data i want to see? For example, I only need the file name, permissions, and creation date.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
moropsk, 2019-10-06
@AspMaster

man ls

S
SEOD, 2019-10-06
@SEOVirus

ls -1
No extra info at all :)

D
Dmitry, 2019-10-07
@hempy80

as already written man ls, and from myself I will add man awk
ls -la | awk '{print $1,$6,$7,$8,$9}' - not the most correct option if there are files containing a space in the name

K
Kamil, 2019-10-07
@Lakika

ls-la

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question