How to delete files from a folder having large number of files

Find file patern Change to the folder with the files. and use the below command the list 10 files to know the file name pattern. Let’s assume the results shown were as below. you can see that the files are in different file paterns. 1481437763.H954P5447.server.hostname.com 1468783501.H490580P22718.server.hostname.com 1475010772.H687029P17227.server.hostname.com 1493274854.H345961P8138.server.hostname.com 1482192789.H301559P16572.server.hostname.com 1489596894.H418001P14490.server.hostname.com 1477925020.H369024P27934.server.hostname.com 1492679074.H264189P23124.server.hostname.com 1472341025.H302369P21273.server.hostname.com 1478050624.H708736P8736.server.hostname.com Delete … Read more

CentOS: Error yum update File “/usr/bin/yum”, line 29, in ?

Error: …… >> checking all the updates and settings the correct files for updating (no mirror problems!), then I get:Traceback (most recent call last):File “/usr/bin/yum”, line 29, in ?yummain.user_main(sys.argv[1:], exit_code=True)File “/usr/share/yum-cli/yummain.py”, line 229, in user_mainerrcode = main(args)File “/usr/share/yum-cli/yummain.py”, line 145, in main Solution: edit  /etc/yum/pluginconf.d/fastestmirror.conf set enable=0

Centos: yum update could not retrieve mirrorlist

When you try to do yum update, you may get the following error yum updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386& repo=os error was14: PYCURL ERROR 6 – “”Error: Cannot find a valid baseurl for repo: base To resolve this, 1) configure resolv.conf open file /etc/resolv.conf and insert 2)configure network … Read more