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 [2016/07/20 17:13] k2patel [Clearing cache linux] |
quick_command_list [2018/05/22 17:59] k2patel [Ping packet size] |
||
---|---|---|---|
Line 423: | Line 423: | ||
echo 2 > /proc/sys/vm/drop_caches | echo 2 > /proc/sys/vm/drop_caches | ||
</code> | </code> | ||
- | + | *Free PageCache from memory** | |
- | **Free PageCache from memory** | + | |
<code bash> | <code bash> | ||
echo 1 > /proc/sys/vm/drop_caches | echo 1 > /proc/sys/vm/drop_caches | ||
Line 432: | Line 431: | ||
This will usually result in some memory becoming more obviously available; however, under normal circumstances this should not be necessary.\\ | This will usually result in some memory becoming more obviously available; however, under normal circumstances this should not be necessary.\\ | ||
BE WARNED that using vm.drop_caches can cause a deadlock if the system is under heavy memory and I/O load!!! | BE WARNED that using vm.drop_caches can cause a deadlock if the system is under heavy memory and I/O load!!! | ||
+ | |||
+ | ==== Ping packet size ==== | ||
+ | <code bash> | ||
+ | ping -v -M do -s 8064 192.168.1.1 | ||
+ | </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. |