This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
quick_command_list [2017/07/26 17:59] k2patel |
quick_command_list [2018/08/07 14:49] k2patel [Remove file with ASCII Name] |
||
---|---|---|---|
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. | ||
+ | |||
+ | ==== Testing connection or port without any software ==== | ||
+ | In linux proper way to test tcp or udp port connection without any software installed should be creating dev node. | ||
+ | |||
+ | <code bash> | ||
+ | /dev/<proto>/<host>/<port> | ||
+ | </code> | ||
+ | |||
+ | out put can be redirected to tty with help of cat. | ||
+ | <code bash> | ||
+ | cat < /dev/tcp/k2patel.in/3306 | ||
+ | </code> |