如果我正在编写一个长命令或只是输入一个广泛的文件路径,是否有任何我可以通过某些命令快捷方式“重用”它的东西?
例如:
1.cp /home/myuser/really/big/file/here/and/there.png /home/myuser/really/big/file/here/and/there.png.bkp
cp /home/myuser/really/big/file/here/and/there.png /home/myuser/really/big/file/here/and/there.png.bkp
我真的需要重新输入一遍吗?
bash cp
所以我一直在使用 poweroff 命令在特定时间关闭我的计算机。
硬件可以这样做吗(例如硬盘驱动器)?或者我应该使用其他系统调用?
linux shutdown ubuntu poweroff
bash ×1
cp ×1
linux ×1
poweroff ×1
shutdown ×1
ubuntu ×1