Uploaded October 2015 | Updated December 2026, 3 hours ago
Take a screenshot of the TTY without needing an X server.
The command is:
sudo cat "/dev/vcs`tty | sed 's:/dev/tty::'`" | sed "s:.\{`tput cols`\}:&\n:g" | convert -negate -font Courier label:@- screenshot.png
I'd recommend putting this in a shell script called "screenshot", marking it as executable, then moving it to /usr/local/bin/ so that you can simply type the word "screenshot" to take a screenshot. You can also change "screenshot.png" to "$1" if you want to be able to pass in an argument to specify the screenshot's name. You can also change "Courier" to "Courier-Bold" to get a slightly clearer font.
Take a screenshot of the TTY without needing an X server.
The command is:
sudo cat "/dev/vcs`tty | sed 's:/dev/tty::'`" | sed "s:.\{`tput cols`\}:&\n:g" | convert -negate -font Courier label:@- screenshot.png
I'd recommend putting this in a shell script called "screenshot", marking it as executable, then moving it to /usr/local/bin/ so that you can simply type the word "screenshot" to take a screenshot. You can also change "screenshot.png" to "$1" if you want to be able to pass in an argument to specify the screenshot's name. You can also change "Courier" to "Courier-Bold" to get a slightly clearer font.







![x86_64 Linux Assembly #9 - Command Line Arguments
In this video we take a look at command line arguments.
In the video, I pop the arguments off the stack. Also remember that you can peek at a stack using [rsp] if you do not want to pop the values off the stack. [rsp] will peek at the top (argc), [rsp+8] will peek at the second to the top (*path), [rsp+16] will peek at the third from the top (*arg[1]), etc.
linux64.asm
http://pastebin.com/wCNZs3RN
argtest.asm
http://pastebin.com/MAA0NFsK x86_64 Linux Assembly #9 - Command Line Arguments](https://i.ytimg.com/vi/xtFs1yBVinc/mqdefault.jpg)


