3 ms·
GUI can work across multiple windows/contexts while CLI commands are bound to just one context. For instance: I can open two file browsers in different direct
by chme 6y ago
GUI can work across multiple windows/contexts while CLI commands are bound to just one context.
For instance:
I can open two file browsers in different directories and simply drag and drop a file from one to the other.
But there is no command (AFAIK) that allows you to copy a file from the current working directory of one terminal session to another. If for instance tmux or some other terminal emulator would allow something like:
cp file.txt <<other-sessions-id>>/file.txt
to copy from one window to the next, that would be useful.
On linux you could sort of write a script for that, which uses the pid and gets the cwd from /proc/<<pid>>/cwd.
- jodrellblank 6y agoIndeed; the "don't ctrl+c/ctrl-v" copy files ignores the fact that you can copy to different windows - but they don't even need to be file browsers, you can copy files over RDP sessions or sometimes into/out of virtual machines, or sometimes into web browser pages for file upload, or in the middle of a standard Win32 "file open" or "file save as" browse dialog, or in a VMware thick-client datastore browser, or in a 7-Zip view on a compressed archive, or in a ton of different common GUI software like FTP clients and etc. etc.