The ls
can give a result like
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo
But actually I hope to just find out CentOS-Base.repo
,CentOS-Debuginfo.repo
and CentOS-Vault.repo
but not CentOS-Media.repo
.
So I run this command
ls [^\(Media\)]
But I get a error information.How should I do?