Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Write a bash script to delete all the files in the current directory that contains the word “linux”.
Home
Linux
Write a bash script to delete all the files in the current directory that contains the word...
0
votes
asked
Nov 11, 2020
in
Linux
by
sharadyadav1986
Write a bash script to delete all the files in the current directory that contains the word “linux”.
#linux-bash-script
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 11, 2020
by
rahuljain1
Write a bash script to delete all the files in the current directory that contains the word “linux”.
for i in *linux*; do rm $i; done
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: How would you delete a directory in Linux?
asked
Nov 11, 2020
in
Linux
by
sharadyadav1986
#linux-delete-a-directory
+1
vote
Q: Bash/Shell-Move all files from subdirectories into target directory?
asked
Jan 30, 2022
in
Other
by
DavidAnderson
interview-question-answer
0
votes
Q: What kind of files or nodes /dev/ directory contains and how do I access or see device files?
asked
Aug 31, 2019
in
Linux
by
Robin
#linux
#linux-log
#linux-dedicated-web-hosting
#load-balancing-software-linux
#linux-http-file-server
#linux-vps-hosting-comparison
#linux-ip-pbx
#linux-iscsi-server
#linux-backup-appliance
#linux-monitoring-web
#sql-server-in-linux
#network-testing-tools-linux
#what-is-audit-log-in-linux
#vmware-view-linux-client
#linux-backup-and-restore-commands
#linux-file-permissions
#hyper-v-manager-for-linux
#linux-certification
#linux-training
#linux-tutorial
+1
vote
Q: Write a command that will display all .txt files, including its individual permission.
asked
May 11, 2021
in
Linux
by
rajeshsharma
#display-files
linux
commands
0
votes
Q: How would you write a Bash script that takes command line arguments?
asked
Feb 7
in
JavaScript
by
john ganales
bash-script
0
votes
Q: How would you use ‘find’ command in a Bash script to look for specific files or directories?
asked
Feb 8
in
JavaScript
by
Robindeniel
bash-script
0
votes
Q: Write a command to find all of the files which have been accessed within the last 30 days.
asked
Aug 29, 2019
in
Linux
by
Robin
#linux
#linux-log
#linux-dedicated-web-hosting
#load-balancing-software-linux
#linux-http-file-server
#linux-vps-hosting-comparison
#linux-ip-pbx
#linux-iscsi-server
#linux-backup-appliance
#linux-monitoring-web
#sql-server-in-linux
#network-testing-tools-linux
#what-is-audit-log-in-linux
#vmware-view-linux-client
#linux-backup-and-restore-commands
#linux-file-permissions
#hyper-v-manager-for-linux
#linux-certification
#linux-training
#linux-tutorial
+1
vote
Q: Describe BASH in Linux
asked
Feb 17, 2021
in
Linux
by
SakshiSharma
#bash
linux-bash
bash-linux
0
votes
Q: What does #!/bin/bash at the of a script do?
asked
Jul 1, 2023
in
Linux
by
sharadyadav1986
linux-script
bash#linux
#linux-log
#linux-dedicated-web-hosting
#load-balancing-software-linux
#linux-http-file-server
#linux-vps-hosting-comparison
#linux-ip-pbx
#linux-iscsi-server
#linux-backup-appliance
#linux-monitoring-web
#sql-server-in-linux
#network-testing-tools-linux
#what-is-audit-log-in-linux
#vmware-view-linux-client
#linux-backup-and-restore-commands
#linux-file-permissions
#hyper-v-manager-for-linux
#linux-certification
#linux-training
#linux-tutorial
0
votes
Q: The ________ option allows you to copy jars locally to the current working directory of tasks and automatically unjar the files. a) archives b) files c) task d) none of the mentioned
asked
Oct 23, 2022
in
Hadoop
by
DavidAnderson
hadoop-questions-answers-hadoop-streaming
...