Jump to content

Command line: Difference between revisions

From wiki.rayhan.com
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


<code>cat .zsh_history | cut -d ';' -f2 | cut -d ' ' -f1 | sort | uniq -c | sort -n | less</code>
<code>cat .zsh_history | cut -d ';' -f2 | cut -d ' ' -f1 | sort | uniq -c | sort -n | less</code>
Edit caddy config and reload:
<code>vim conf/Caddyfile && docker exec -w /etc/caddy caddy caddy reload</code>


== Windows ==
== Windows ==


Robocopy drive contents to a directory on another drive. "/E /A-:SH" avoids a robocopy bug that makes the destination directory "super hidden", whatever that means.
Robocopy drive contents to a directory on another drive. "/E /A-:SH" avoids a robocopy bug that makes the destination directory "super hidden", whatever that means.
<code>robocopy H:\ J:\Backup-of-H\ /FFT /R:0 /MIR /E /A-:SH</code>
<code>robocopy H:\ J:\Backup-of-H\ /FFT /R:0 /MIR /E /A-:SH</code>



Latest revision as of 05:56, 17 November 2025

One-liners

View your most used commands:

cat .zsh_history | cut -d ';' -f2 | cut -d ' ' -f1 | sort | uniq -c | sort -n | less


Edit caddy config and reload: vim conf/Caddyfile && docker exec -w /etc/caddy caddy caddy reload

Windows

Robocopy drive contents to a directory on another drive. "/E /A-:SH" avoids a robocopy bug that makes the destination directory "super hidden", whatever that means.

robocopy H:\ J:\Backup-of-H\ /FFT /R:0 /MIR /E /A-:SH

Tools

Manage wifi:

nmtui