スレッド

会話

返信先: さん
sudo !! really can’t be beat. It’ll run your last command as sudo. Also love a good ls -la (lists what’s in your current directory plus information about each item).
16
3
169
返信を表示
返信を表示
返信を表示
返信を表示
返信を表示
返信を表示
返信を表示
返信を表示
AKA "Ctrl+shift+r" This is a reverse history search, and it's BALLER!!! No, srsly, it's a fucking life safer, it will literally save you more than a day of your life if you use Linux a lot.
5
返信を表示
A real favorite bash tip: functions can be like this: foo() { ... } but leaks variables and `cd` changes etc. unless you're super careful. You can tighten this up by using a subshell: foo() ( ... ) and now nothing inside the function leaks out.
3
2
43
返信を表示
I actually do use this pretty regularly when not being truly lazy and just press up a dozen times.
返信先: さん
I use !$ all the time. It's the last field of the previous command... sudo vi /complicated/path/to/file/somewhere sudo chown apache:apache !$
4
81
Once I stumbled on ESC+. I gave up on !$ Instead of substitution on execute, it populates that last value immediately on the cli for editing.
3
3
55
返信を表示
返信を表示
返信を表示

Twitterを使ってみよう

今すぐ登録して、タイムラインをカスタマイズしましょう。
By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

トレンド

いまどうしてる?

音楽
ライブ
EXO・CHENさんの誕生日🎂
ニュース
42 分前
20日のNYダウ平均株価
東洋経済オンライン
昨日
小4で娘が不登校になった親が知った衝撃の事態
日本のトレンド
ジェラピケ
24,156件のツイート
日本のトレンド
バンタン
14,755件のツイート