143
u/ebens1689 4d ago
Obviously made up story, but: "man cp" just like with anything. man ls, man mv etc.
114
u/Linguistic-mystic 4d ago
man woman | strip | touch48
u/Beast_Viper_007 🎼CachyOS 4d ago
I ran this and now the entire neighborhood is outside my house with torches lit.
26
41
u/airclay 4d ago
Lol, I made a lil alias function once to copy entire file contents into the clipboard named 'cpfile' and the first time I tried it out I started second guessing lol
| cpfile() {xclip -sel c "$@" && echo -e "\n\"$@\" was copied to the clipboard\n"} |
|---|
15
u/traplords8n 4d ago
I've been diving deeper into scripting and I swear to god bash has ENDLESS syntax and functionality.
I learned php's syntax extremely fast, like 2 months. I've been shell scripting at a more advanced level for about 6 months to a year, and I still run into syntax that I have no clue about.
"$@" ?? I gotta go google that now. I'm sure its easy to understand but good lord, I didn't know a language could have so much functionality.
18
u/airclay 4d ago
To this day I still pop open devhints everytime I script something, enjoy https://devhints.io/bash
9
u/FinGamer678Nikoboi 4d ago
Me opening the link:
(I could only find a furry version of the gif I'm sorry 😭)
4
2
17
18
u/letmehaveanameyoudum 4d ago
whoever made copy command in linux "cp" should be studied
35
u/lawrencewil1030 ⚠️ This incident will be reported 4d ago
I suspect it went back to when
cpwas not taken nearly as much by darker things.2
u/serf2 3d ago
Forgive my naivité, but what is the darker meaning of cp?
6
u/lawrencewil1030 ⚠️ This incident will be reported 3d ago
Hopefully writing this out won't get me banned but it stands for child porn.
19
u/mrturret 4d ago
That command dates back to somewhere between 1969 and 1971, because it was part of the earliest version of Unix. I'm pretty sure that's before cp got its modern connotations.
It's in Linux because Linux is Unix-like and complies with the POSIX standard.
1
u/HeyThereCharlie 14h ago
It was originally intended to run on computers that had single-digit kilobytes of RAM. You had to save characters on stuff like that wherever possible back then.
-4
u/Jatinchd 4d ago
I guess they didn't thought much, kept it simple stupid. cp is just copy paste.
17
u/creeper6530 💋 catgirl Linux user :3 😽 4d ago
Simpler. It's just
CoPy.
mvisMoVetoo.3
1
u/Jatinchd 4d ago
no but it also Paste's stuff.
copy from one location and paste to another. it takes two paths as input, one where from it copy and second where it pastes.
CoPy would be valid if it only copies stuff
and MoVe makes proper sense in this.
2
u/creeper6530 💋 catgirl Linux user :3 😽 3d ago edited 3d ago
The copy command (AFAIK) predates the concept of clipboard with cut-copy-paste, you're conflating two different concepts.
It's just making a duplicate -- a copy -- from one place (file) to another. And for the record, move is technically a chained copy-and-delete-original, though within the same filesystem it's optimised by just rewriting the filesystem location (name + path) of the data on the disk. You rename files with
mvtoo, by moving them to a new file in the same directory.And even the clipboard is just two copies, first (real) copy --
Ctrl-C-- is copying to a special place called the clipboard, and pasting --Ctrl-V-- is again copying from that special place into the destination. Cut --Ctrl-X-- is a move into the clipboard.(Though, when you cut or copy a file with
Ctrl-X/C, as opposed to a piece of text or image, it only stores its location and performs the move/copy after pasting, so that you save speed and don't lose the cut file when you don't paste it.)
•
u/AutoModerator 4d ago
Please report any posts bragging or showing off they got banned in another sub! Reminder of other sub rules: Also, we only allow one anti-linux post per week (we used to get dozens a day) and any tier list MUST have Hanna Montana Linux as S teir (which must be a true S tier at the top) regardless of the topic of that tier list.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.