27
submitted 11 months ago by Subject6051@lemmy.ml to c/linux@lemmy.ml

Question 1:

I want to copy a file to clipboard, how can I do this using cli? I have this file "home/$USER/example.svg" and I want to copy it to clipboard without manually doing it. I tried to ask ChatGPT to help me with it, it didn't :(

I am pretty sure there is a copy to clipboard option in Thunar and Nemo file managers but I don't know how to use it. My google searches have been so far fruitless. Please help me copy it?

Use Case: I want to copy it and paste it to Obsidian.md file. Obsidian is a text manager which supports Mathjax but not Latex, so in order to get a semblance of greater Latex support, I want to convert tex to svg and copy it from the folder to clipboard (without opening the folder) and then paste it.


Question 2: Do you have a anonymous file sharing service you use to share videos and images? If so, what is it? imgur helps with images and videos lower than 1 mins, but above that, it won't accept uploads.

Also, bashify.io and emalm.com seems to be ok ok in this regard. The problem is, I don't know enough about them to trust them. mehh....

Use case: If I have a problem with my system, I want to share the video of the problem I am facing to Linux forums and I want it to be instantly accessible


Question 3: Is it ok to move random file script you find on the internet into a root folder which is included in your $PATH variable?

https://github.com/tremby/imgur.sh

I was trying to use this script and it is my understanding that if you have a script in a folder included in your path variable, then you don't have to actually specify the path to run it. You can just give it's name and press enter to execute it.

am I right so far and should I move that script into my path variable folder? What are the risks?

you are viewing a single comment's thread
view the rest of the comments
[-] charlotte@feddit.de 2 points 11 months ago

Regarding 2: I don't think I've ever seen this, in what situation would you rather share a video then a description of the problem + your log files?

Regarding 3: Should be fine as along as the script itself isn't harmful. Which you can really only answer by reading the script. (And funnily enough, you'd find an answer to your first question inside this specific script...).

this post was submitted on 03 Oct 2023
27 points (96.6% liked)

Linux

47214 readers
776 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS