Question

How do you find files whose names contain embedded spaces? What would the Linux command(s) be?...

How do you find files whose names contain embedded spaces?
What would the Linux command(s) be?

How do you delete them?
What would the Linux command(s) be?

Homework Answers

Answer #1
  • Linux command to find files whose names contain embedded spaces:

find has a -exec option, which allows you to specify a command to be executed for each file found. The executed command may also take arguments, any of which may be the string {} which will be replaced by the path of the found file. The command and its arguments are not subject to further expansion of shell patterns, so it's safe for {} to stand in for a file with a space in the name. For example,

$ find ~/Library -name '* *' -exec ls {} \;
  • Linux command to delete the file contain spaces:

The following command is required to copy or delete files with spaces in their name, for example:

$ cp "filename" /secure/location/
$ rm "filename"
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
In Linux please just type out command assuming files and directories are there Q21: display those...
In Linux please just type out command assuming files and directories are there Q21: display those line and line number do not contain “apple” from files whose name contains “file”. Q22: find all files, where file size is bigger than 100k and smaller 500k, and where filename ends with “.py” Q23: delete all directories with size larger than 10M or smaller than 1M. Q24: find out the five largest files or directories from current working directory, and output the result...
linux Using dpkg or apt, what would be the full command you would use to find...
linux Using dpkg or apt, what would be the full command you would use to find out if the python package was installed? This is tricky because Python’s actual package name is python3. $ If it is installed, what version is installed according to the dpkg or apt output? If it wasn’t installed, can you install it? What command would you use to do this? $ 2. Using dpkg, what would be the full command you would use to determine...
How would I go about answering these questions In linux. Please provide the correct linux command...
How would I go about answering these questions In linux. Please provide the correct linux command needed to answer these 4 questions 5. Display total words of each file under your root directory and subdirectories. 6. Change permission of every filename ends “.py” to — write read execute, group - read execute, other - execute 7. Find every line which contains “hello” from your file system, display both file name, line number. 8. Combine files with name “p3.py”, “p31.py”, “p32.py”,...
What command would you use to view the files and folders in the C:\windows directory? Use...
What command would you use to view the files and folders in the C:\windows directory? Use relative references. What command would you use to view only the directories in the C:\windows directory? Use relative references. Hint: Use a switch. What command would you use to view only the .com files in the C:\windows\system32 directory? Use relative references. What command would you use to create a directory called JUNK at the root. Use relative references. What command would you use to...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
What command discards the IP address? What command do you use to determine whether you can...
What command discards the IP address? What command do you use to determine whether you can reach another computer on the local network? Would this command work if the default gateway were down? When troubleshooting problems with resolving domain names to IP addresses, flushing the DNS cache can sometimes help so that the local computer must build the cache again. What is the command to flush the DNS cache? What command would you use to display information about name resolutions...
How can you find out which utilities are available on your system for editing files (provide...
How can you find out which utilities are available on your system for editing files (provide the command to be used)?
How do you show what services get started with runlevel and also how show which services...
How do you show what services get started with runlevel and also how show which services will be stopped when runlevel 3 is exited in the linux command?
What does it mean to run command as an elevated user? How do you accomplish this?...
What does it mean to run command as an elevated user? How do you accomplish this? List four types of information that the ipconfig command with the /all parameter provides that the ipconfig command without the parameter does not. What type of server resolves a domain name to an IP address?
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and...
Project 10-3 In this hands-on project, you view the configuration of the System Log Daemon and the logrotate utility on Ubuntu Server Linux. 1. Boot your Ubuntu Server Linux virtual machine. After your Linux system has been loaded, log into tty1 using the user name of root and the password of LNXrocks!. 2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemon on Ubuntu Server Linux uses this file and what...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT