The following are the 10 coolest Linux single-line commands from the Commandlinefu website voted by users. Sudo !! Run the previous command in the root account. Python-mSimpleHTTPServer uses Python to build a simple Web server. The following is the 10 coolest Linux single-line commands from the Commandlinefu website voted by users.
Sudo !!
Run the previous command in the root account.
Python-m SimpleHTTPServer
Use Python to build a simple Web server that can be accessed through http: // $ HOSTNAME: 8000.
: W! Sudo tee %
You do not need to save the edited file in Vim.
Cd-
Change to the last accessed directory.
^ Foo ^ bar
Replace foo with bar in the previous command and execute.
Cp filename {,. bak}
Quickly back up or copy files.
Mtr google.com
Traceroute + ping.
! Whatever: p
Search for command history, but do not execute.
$ Ssh-copy-id user @ host
Copy ssh keys to user @ host to enable password-less SSH login.
Ffmpeg-f x11grab-s wxga-r 25-I: 0.0-sameq/tmp/out. mpg
Recording a video on a Linux desktop.