User Tools

Site Tools


quick_command_list

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
quick_command_list [2017/07/26 13:59]
k2patel
quick_command_list [2018/05/22 13:59] (current)
k2patel [Ping packet size]
Line 437: Line 437:
 </​code>​ </​code>​
  
 +==== Remove file with ASCII Name ====
 +
 +Simplest thing to do is use built in functionality to search and remove in command.
 +Here is the file i've on my machine.
 +<code bash>
 +�^?
 +</​code>​
 +
 +which translate to //''​$'​\250\177'//​ <br>
 +So check or list all the files with ascii in it.
 +<code bash>
 +ls [^[:​ascii:​]]*
 +</​code>​
 +
 +now to remove
 +<code bash>
 +rm [^[:​ascii:​]]*
 +</​code>​
 +
 +:!: Regex can be modified to list all matching file before removal.
quick_command_list.txt · Last modified: 2018/05/22 13:59 by k2patel