Command Line Magic
@climagic
Cool Unix/Linux Command Line tricks you can use in $TWITTER_CHAR_LIMIT characters or less. Here mostly to inspire all to try more. Read docs first, run later.\~
Command Line Magicさんのツイート
less +F filename.log # Using +F option or pressing F in less is similar to `tail -f filename.log` but can use less's features.
6
52
198
1
13
40
254 = CLI on the phone in case you didn't notice.
3
22
このスレッドを表示
メディアを再生できません。
再読み込み
3
142
468
このスレッドを表示
while true ; do cat globe.vt | pv -L9600 -q | GREP_COLORS="ms=01;32" egrep --color=always "[^ ]+" | GREP_COLORS="ms=01;44" egrep --color=always -e "\ +" | sed 's/^.\[01;44m//' ; done # Level up
メディアを再生できません。
再読み込み
5
69
288
このスレッドを表示
メディアを再生できません。
再読み込み
7
60
200
curl -s http://artscene.textfiles\.com/vt100/globe.vt | pv -L9600 -q # Spinning ASCII art globe. Visit the parent directory in that URL for more animations.
メディアを再生できません。
再読み込み
12
316
999
このスレッドを表示
Some programs like to send their help output to STDERR instead of STDOUT. This makes it harder to pipe the output to other programs. If you had to choose, where would you prefer the help output from a program to go?
STDOUT
STDERR
I don't care
I don't understand
3,734票 · 残り16時間
51
31
56
ls -ld /lost+found # Unless you've had some filesystem trouble or migrated to a new root filesystem, this will usually indicate when you installed a system.
2
20
111
cd(){ [[ -t 1 && $((RANDOM%20)) -eq 0 ]] && echo " meow (=^_^=) )~"; builtin cd "$@"; } # %5 chance of printing an ASCII art cat when you run the cd command. By Adi on mastodon
5
53
199
awk 'NR==1{print} END {print}' data.csv # An awk way to print the first and last line of a file easily using awk so that for example you can see the headers along with the most recent entry for data.
8
35
173
Why reinvent the tweet
引用ツイート
SwiftOnSecurity
@SwiftOnSecurity
·
NO MORE PACKAGE MANAGERS.
STOP. NO. PLAY WITH THE TOYS YOU ALREADY HAVE.
9
27
111
pgrep rsync | xargs ionice -c3 -p # Adjust all rsync processes on the system so that they have lower (idle) IO priority.
1
28
118
for i in *.tar.gz; do mkdir "${i%.tar.gz}";( cd "${i%.tar.gz}" && tar zxvf ../"$i" );done # Put the output of each tar file into its own directory.
8
57
268
mkdir good; for f in *JPG ;do mv "${f%JPG}"* good/;done # Move JPGs and related files (e.g. raws + sidecar XMP) for workflow
1
15
83
2020: Apple starts randomizing Mac's MAC addresses.
GIF
21
43
199
4
27
このスレッドを表示
Twitterを使ってみよう
今すぐ登録して、タイムラインをカスタマイズしましょう。
アカウント作成
トレンド
いまどうしてる?
アメリカ合衆国のトレンド
#RHOBH
9,484件のツイート
アメリカ合衆国のトレンド
#BB22
トレンドトピック: #BigBrother, #bballstars
140,259件のツイート
ナショナルホッケーリーグ · トレンド
Jack Johnson
トレンドトピック: #LetsGoPens
4,293件のツイート