1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4377
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "except for grep and multipass, which aren’t gnu, and amount to half of the utilities mentioned in the post if I read it correctly 🤷"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061384 {#4374
date: 2024-01-24 02:56:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335723
-bodyTs: "'amount':11 'aren':7 'correct':25 'except':1 'gnu':9 'grep':3 'half':13 'mention':17 'multipass':5 'post':20 'read':23 'util':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6958311"
+editedAt: DateTimeImmutable @1728135082 {#4375
date: 2024-10-05 15:31:22.0 +02:00
}
+createdAt: DateTimeImmutable @1706061384 {#4376
date: 2024-01-24 02:56:24.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4377
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "except for grep and multipass, which aren’t gnu, and amount to half of the utilities mentioned in the post if I read it correctly 🤷"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061384 {#4374
date: 2024-01-24 02:56:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335723
-bodyTs: "'amount':11 'aren':7 'correct':25 'except':1 'gnu':9 'grep':3 'half':13 'mention':17 'multipass':5 'post':20 'read':23 'util':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6958311"
+editedAt: DateTimeImmutable @1728135082 {#4375
date: 2024-10-05 15:31:22.0 +02:00
}
+createdAt: DateTimeImmutable @1706061384 {#4376
date: 2024-01-24 02:56:24.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4377
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "except for grep and multipass, which aren’t gnu, and amount to half of the utilities mentioned in the post if I read it correctly 🤷"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061384 {#4374
date: 2024-01-24 02:56:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335723
-bodyTs: "'amount':11 'aren':7 'correct':25 'except':1 'gnu':9 'grep':3 'half':13 'mention':17 'multipass':5 'post':20 'read':23 'util':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6958311"
+editedAt: DateTimeImmutable @1728135082 {#4375
date: 2024-10-05 15:31:22.0 +02:00
}
+createdAt: DateTimeImmutable @1706061384 {#4376
date: 2024-01-24 02:56:24.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4414
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4377
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "except for grep and multipass, which aren’t gnu, and amount to half of the utilities mentioned in the post if I read it correctly 🤷"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061384 {#4374
date: 2024-01-24 02:56:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335723
-bodyTs: "'amount':11 'aren':7 'correct':25 'except':1 'gnu':9 'grep':3 'half':13 'mention':17 'multipass':5 'post':20 'read':23 'util':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6958311"
+editedAt: DateTimeImmutable @1728135082 {#4375
date: 2024-10-05 15:31:22.0 +02:00
}
+createdAt: DateTimeImmutable @1706061384 {#4376
date: 2024-01-24 02:56:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "You’re certainly right about Multipass, but the grep included in Ubuntu does seem to be from [GNU](https://launchpad.net/ubuntu/+source/grep)."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706078122 {#4412
date: 2024-01-24 07:35:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4415 …}
+nested: Doctrine\ORM\PersistentCollection {#4417 …}
+votes: Doctrine\ORM\PersistentCollection {#4419 …}
+reports: Doctrine\ORM\PersistentCollection {#4421 …}
+favourites: Doctrine\ORM\PersistentCollection {#4423 …}
+notifications: Doctrine\ORM\PersistentCollection {#4425 …}
-id: 336091
-bodyTs: "'/ubuntu/+source/grep).':21 'certain':3 'gnu':18 'grep':9 'includ':10 'launchpad.net':20 'launchpad.net/ubuntu/+source/grep).':19 'multipass':6 're':2 'right':4 'seem':14 'ubuntu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6965967"
+editedAt: null
+createdAt: DateTimeImmutable @1706078122 {#4413
date: 2024-01-24 07:35:22.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\EntryComment {#4414
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4377
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "except for grep and multipass, which aren’t gnu, and amount to half of the utilities mentioned in the post if I read it correctly 🤷"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061384 {#4374
date: 2024-01-24 02:56:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335723
-bodyTs: "'amount':11 'aren':7 'correct':25 'except':1 'gnu':9 'grep':3 'half':13 'mention':17 'multipass':5 'post':20 'read':23 'util':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6958311"
+editedAt: DateTimeImmutable @1728135082 {#4375
date: 2024-10-05 15:31:22.0 +02:00
}
+createdAt: DateTimeImmutable @1706061384 {#4376
date: 2024-01-24 02:56:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "You’re certainly right about Multipass, but the grep included in Ubuntu does seem to be from [GNU](https://launchpad.net/ubuntu/+source/grep)."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706078122 {#4412
date: 2024-01-24 07:35:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4415 …}
+nested: Doctrine\ORM\PersistentCollection {#4417 …}
+votes: Doctrine\ORM\PersistentCollection {#4419 …}
+reports: Doctrine\ORM\PersistentCollection {#4421 …}
+favourites: Doctrine\ORM\PersistentCollection {#4423 …}
+notifications: Doctrine\ORM\PersistentCollection {#4425 …}
-id: 336091
-bodyTs: "'/ubuntu/+source/grep).':21 'certain':3 'gnu':18 'grep':9 'includ':10 'launchpad.net':20 'launchpad.net/ubuntu/+source/grep).':19 'multipass':6 're':2 'right':4 'seem':14 'ubuntu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6965967"
+editedAt: null
+createdAt: DateTimeImmutable @1706078122 {#4413
date: 2024-01-24 07:35:22.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4414
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4377
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4338
+user: Proxies\__CG__\App\Entity\User {#4339 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4108
+user: App\Entity\User {#4057 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux\n
\n
Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.\n
\n
/s
"""
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1728225865 {#4118
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4106 …}
+nested: Doctrine\ORM\PersistentCollection {#4104 …}
+votes: Doctrine\ORM\PersistentCollection {#4102 …}
+reports: Doctrine\ORM\PersistentCollection {#4100 …}
+favourites: Doctrine\ORM\PersistentCollection {#4068 …}
+notifications: Doctrine\ORM\PersistentCollection {#4072 …}
-id: 334349
-bodyTs: "'/s':71 'ascend':47 'automat':57 'belllabs/gnu/linux':15 'call':13 'canon':21 'canonical/belllabs/gnu/linux':24,54 'complet':31 'consist':23 'cpu':34 'cycl':35 'date':65 'didn':4 'easi':68 'forget':20 'gnu/grep':9 'grep':7 'keep':25,58 'list':32 'mayb':49 'mind':27 'nomenclatur':70 'oh':16 'order':48 'output':61 'project':41 'proper':69 'replac':6 'script':55 'sort':29 'specif':44 'string':66 'system':45 'track':59 'use':36 'well':1 'write':52"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945518"
+editedAt: DateTimeImmutable @1727980090 {#4050
date: 2024-10-03 20:28:10.0 +02:00
}
+createdAt: DateTimeImmutable @1706025477 {#4117
date: 2024-01-23 16:57:57.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706057743 {#4336
date: 2024-01-24 01:55:43.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4340 …}
+nested: Doctrine\ORM\PersistentCollection {#4342 …}
+votes: Doctrine\ORM\PersistentCollection {#4344 …}
+reports: Doctrine\ORM\PersistentCollection {#4346 …}
+favourites: Doctrine\ORM\PersistentCollection {#4348 …}
+notifications: Doctrine\ORM\PersistentCollection {#4350 …}
-id: 335628
-bodyTs: "'agre':3 'behind':7 'case':14 'extra':32 'general':2 'gnu':20 'learn':18 'linux':25 'messag':6 'mind':30 'nomenclatur':33 'op':15 'particular':23 'realli':16 'sarcasm':9 'specif':13 'util':21 'via':24"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6956740"
+editedAt: null
+createdAt: DateTimeImmutable @1706057743 {#4337
date: 2024-01-24 01:55:43.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "except for grep and multipass, which aren’t gnu, and amount to half of the utilities mentioned in the post if I read it correctly 🤷"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706061384 {#4374
date: 2024-01-24 02:56:24.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4378 …}
+nested: Doctrine\ORM\PersistentCollection {#4380 …}
+votes: Doctrine\ORM\PersistentCollection {#4382 …}
+reports: Doctrine\ORM\PersistentCollection {#4384 …}
+favourites: Doctrine\ORM\PersistentCollection {#4386 …}
+notifications: Doctrine\ORM\PersistentCollection {#4388 …}
-id: 335723
-bodyTs: "'amount':11 'aren':7 'correct':25 'except':1 'gnu':9 'grep':3 'half':13 'mention':17 'multipass':5 'post':20 'read':23 'util':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6958311"
+editedAt: DateTimeImmutable @1728135082 {#4375
date: 2024-10-05 15:31:22.0 +02:00
}
+createdAt: DateTimeImmutable @1706061384 {#4376
date: 2024-01-24 02:56:24.0 +01:00
}
}
+root: App\Entity\EntryComment {#4108}
+body: "You’re certainly right about Multipass, but the grep included in Ubuntu does seem to be from [GNU](https://launchpad.net/ubuntu/+source/grep)."
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1706078122 {#4412
date: 2024-01-24 07:35:22.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@Deckweiss@lemmy.world"
"@davidgro@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4415 …}
+nested: Doctrine\ORM\PersistentCollection {#4417 …}
+votes: Doctrine\ORM\PersistentCollection {#4419 …}
+reports: Doctrine\ORM\PersistentCollection {#4421 …}
+favourites: Doctrine\ORM\PersistentCollection {#4423 …}
+notifications: Doctrine\ORM\PersistentCollection {#4425 …}
-id: 336091
-bodyTs: "'/ubuntu/+source/grep).':21 'certain':3 'gnu':18 'grep':9 'includ':10 'launchpad.net':20 'launchpad.net/ubuntu/+source/grep).':19 'multipass':6 're':2 'right':4 'seem':14 'ubuntu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6965967"
+editedAt: null
+createdAt: DateTimeImmutable @1706078122 {#4413
date: 2024-01-24 07:35:22.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4152
+user: App\Entity\User {#4134 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
This is really great info! I never knew Multipass existed, thanks for sharing.\n
\n
For macOS, [Homebrew](https://brew.sh) can be used to selectively replace certain parts of the coreutils with the GNU versions\n
\n
Edit: On reviewing the script you mentioned, that’s exactly what it does. It uses Homebrew to replace all the coreutils in one go
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1727967045 {#4159
date: 2024-10-03 16:50:45.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4148 …}
+votes: Doctrine\ORM\PersistentCollection {#4146 …}
+reports: Doctrine\ORM\PersistentCollection {#4145 …}
+favourites: Doctrine\ORM\PersistentCollection {#4136 …}
+notifications: Doctrine\ORM\PersistentCollection {#4139 …}
-id: 334172
-bodyTs: "'brew.sh':17 'certain':24 'coreutil':28,53 'edit':33 'exact':42 'exist':10 'gnu':31 'go':56 'great':4 'homebrew':16,48 'info':5 'knew':8 'maco':15 'mention':39 'multipass':9 'never':7 'one':55 'part':25 'realli':3 'replac':23,50 'review':35 'script':37 'select':22 'share':13 'thank':11 'use':20,47 'version':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943941"
+editedAt: DateTimeImmutable @1727964293 {#4160
date: 2024-10-03 16:04:53.0 +02:00
}
+createdAt: DateTimeImmutable @1706020343 {#4157
date: 2024-01-23 15:32:23.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#4152
+user: App\Entity\User {#4134 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
This is really great info! I never knew Multipass existed, thanks for sharing.\n
\n
For macOS, [Homebrew](https://brew.sh) can be used to selectively replace certain parts of the coreutils with the GNU versions\n
\n
Edit: On reviewing the script you mentioned, that’s exactly what it does. It uses Homebrew to replace all the coreutils in one go
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1727967045 {#4159
date: 2024-10-03 16:50:45.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4148 …}
+votes: Doctrine\ORM\PersistentCollection {#4146 …}
+reports: Doctrine\ORM\PersistentCollection {#4145 …}
+favourites: Doctrine\ORM\PersistentCollection {#4136 …}
+notifications: Doctrine\ORM\PersistentCollection {#4139 …}
-id: 334172
-bodyTs: "'brew.sh':17 'certain':24 'coreutil':28,53 'edit':33 'exact':42 'exist':10 'gnu':31 'go':56 'great':4 'homebrew':16,48 'info':5 'knew':8 'maco':15 'mention':39 'multipass':9 'never':7 'one':55 'part':25 'realli':3 'replac':23,50 'review':35 'script':37 'select':22 'share':13 'thank':11 'use':20,47 'version':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943941"
+editedAt: DateTimeImmutable @1727964293 {#4160
date: 2024-10-03 16:04:53.0 +02:00
}
+createdAt: DateTimeImmutable @1706020343 {#4157
date: 2024-01-23 15:32:23.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4152
+user: App\Entity\User {#4134 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
This is really great info! I never knew Multipass existed, thanks for sharing.\n
\n
For macOS, [Homebrew](https://brew.sh) can be used to selectively replace certain parts of the coreutils with the GNU versions\n
\n
Edit: On reviewing the script you mentioned, that’s exactly what it does. It uses Homebrew to replace all the coreutils in one go
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1727967045 {#4159
date: 2024-10-03 16:50:45.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4148 …}
+votes: Doctrine\ORM\PersistentCollection {#4146 …}
+reports: Doctrine\ORM\PersistentCollection {#4145 …}
+favourites: Doctrine\ORM\PersistentCollection {#4136 …}
+notifications: Doctrine\ORM\PersistentCollection {#4139 …}
-id: 334172
-bodyTs: "'brew.sh':17 'certain':24 'coreutil':28,53 'edit':33 'exact':42 'exist':10 'gnu':31 'go':56 'great':4 'homebrew':16,48 'info':5 'knew':8 'maco':15 'mention':39 'multipass':9 'never':7 'one':55 'part':25 'realli':3 'replac':23,50 'review':35 'script':37 'select':22 'share':13 'thank':11 'use':20,47 'version':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943941"
+editedAt: DateTimeImmutable @1727964293 {#4160
date: 2024-10-03 16:04:53.0 +02:00
}
+createdAt: DateTimeImmutable @1706020343 {#4157
date: 2024-01-23 15:32:23.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
26 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4309
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4152
+user: App\Entity\User {#4134 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
This is really great info! I never knew Multipass existed, thanks for sharing.\n
\n
For macOS, [Homebrew](https://brew.sh) can be used to selectively replace certain parts of the coreutils with the GNU versions\n
\n
Edit: On reviewing the script you mentioned, that’s exactly what it does. It uses Homebrew to replace all the coreutils in one go
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1727967045 {#4159
date: 2024-10-03 16:50:45.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4148 …}
+votes: Doctrine\ORM\PersistentCollection {#4146 …}
+reports: Doctrine\ORM\PersistentCollection {#4145 …}
+favourites: Doctrine\ORM\PersistentCollection {#4136 …}
+notifications: Doctrine\ORM\PersistentCollection {#4139 …}
-id: 334172
-bodyTs: "'brew.sh':17 'certain':24 'coreutil':28,53 'edit':33 'exact':42 'exist':10 'gnu':31 'go':56 'great':4 'homebrew':16,48 'info':5 'knew':8 'maco':15 'mention':39 'multipass':9 'never':7 'one':55 'part':25 'realli':3 'replac':23,50 'review':35 'script':37 'select':22 'share':13 'thank':11 'use':20,47 'version':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943941"
+editedAt: DateTimeImmutable @1727964293 {#4160
date: 2024-10-03 16:04:53.0 +02:00
}
+createdAt: DateTimeImmutable @1706020343 {#4157
date: 2024-01-23 15:32:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4152}
+body: """
You’re welcome! I stumbled across Multipass when I was looking for virtual machine options for the m1 mac mini I’m working on. I specifically was trying to get away from using the mac coreutils for a consistent syntax experience, and Multipass has been working perfectly for that.\n
\n
It was only after I’d been using Multipass already that I stumbled across that script, and planned to take a look at it to possibly implement on my machine. I didn’t realize that Homebrew allowed for replacing the coreutils with the GNU versions. Another thing learned!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021374 {#4310
date: 2024-01-23 15:49:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@ABeeinSpace@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4306 …}
+nested: Doctrine\ORM\PersistentCollection {#4302 …}
+votes: Doctrine\ORM\PersistentCollection {#4300 …}
+reports: Doctrine\ORM\PersistentCollection {#4315 …}
+favourites: Doctrine\ORM\PersistentCollection {#4317 …}
+notifications: Doctrine\ORM\PersistentCollection {#4319 …}
-id: 334216
-bodyTs: "'across':6,63 'allow':86 'alreadi':59 'anoth':95 'away':31 'consist':39 'coreutil':36,90 'd':55 'didn':81 'experi':41 'get':30 'gnu':93 'homebrew':85 'implement':76 'learn':97 'look':11,71 'm':22 'm1':18 'mac':19,35 'machin':14,79 'mini':20 'multipass':7,43,58 'option':15 'perfect':47 'plan':67 'possibl':75 're':2 'realiz':83 'replac':88 'script':65 'specif':26 'stumbl':5,62 'syntax':40 'take':69 'thing':96 'tri':28 'use':33,57 'version':94 'virtual':13 'welcom':3 'work':23,46"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944280"
+editedAt: null
+createdAt: DateTimeImmutable @1706021374 {#4313
date: 2024-01-23 15:49:34.0 +01:00
}
} |
|
Show voter details
|
27 |
DENIED
|
edit
|
App\Entity\EntryComment {#4309
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4152
+user: App\Entity\User {#4134 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
This is really great info! I never knew Multipass existed, thanks for sharing.\n
\n
For macOS, [Homebrew](https://brew.sh) can be used to selectively replace certain parts of the coreutils with the GNU versions\n
\n
Edit: On reviewing the script you mentioned, that’s exactly what it does. It uses Homebrew to replace all the coreutils in one go
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1727967045 {#4159
date: 2024-10-03 16:50:45.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4148 …}
+votes: Doctrine\ORM\PersistentCollection {#4146 …}
+reports: Doctrine\ORM\PersistentCollection {#4145 …}
+favourites: Doctrine\ORM\PersistentCollection {#4136 …}
+notifications: Doctrine\ORM\PersistentCollection {#4139 …}
-id: 334172
-bodyTs: "'brew.sh':17 'certain':24 'coreutil':28,53 'edit':33 'exact':42 'exist':10 'gnu':31 'go':56 'great':4 'homebrew':16,48 'info':5 'knew':8 'maco':15 'mention':39 'multipass':9 'never':7 'one':55 'part':25 'realli':3 'replac':23,50 'review':35 'script':37 'select':22 'share':13 'thank':11 'use':20,47 'version':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943941"
+editedAt: DateTimeImmutable @1727964293 {#4160
date: 2024-10-03 16:04:53.0 +02:00
}
+createdAt: DateTimeImmutable @1706020343 {#4157
date: 2024-01-23 15:32:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4152}
+body: """
You’re welcome! I stumbled across Multipass when I was looking for virtual machine options for the m1 mac mini I’m working on. I specifically was trying to get away from using the mac coreutils for a consistent syntax experience, and Multipass has been working perfectly for that.\n
\n
It was only after I’d been using Multipass already that I stumbled across that script, and planned to take a look at it to possibly implement on my machine. I didn’t realize that Homebrew allowed for replacing the coreutils with the GNU versions. Another thing learned!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021374 {#4310
date: 2024-01-23 15:49:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@ABeeinSpace@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4306 …}
+nested: Doctrine\ORM\PersistentCollection {#4302 …}
+votes: Doctrine\ORM\PersistentCollection {#4300 …}
+reports: Doctrine\ORM\PersistentCollection {#4315 …}
+favourites: Doctrine\ORM\PersistentCollection {#4317 …}
+notifications: Doctrine\ORM\PersistentCollection {#4319 …}
-id: 334216
-bodyTs: "'across':6,63 'allow':86 'alreadi':59 'anoth':95 'away':31 'consist':39 'coreutil':36,90 'd':55 'didn':81 'experi':41 'get':30 'gnu':93 'homebrew':85 'implement':76 'learn':97 'look':11,71 'm':22 'm1':18 'mac':19,35 'machin':14,79 'mini':20 'multipass':7,43,58 'option':15 'perfect':47 'plan':67 'possibl':75 're':2 'realiz':83 'replac':88 'script':65 'specif':26 'stumbl':5,62 'syntax':40 'take':69 'thing':96 'tri':28 'use':33,57 'version':94 'virtual':13 'welcom':3 'work':23,46"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944280"
+editedAt: null
+createdAt: DateTimeImmutable @1706021374 {#4313
date: 2024-01-23 15:49:34.0 +01:00
}
} |
|
Show voter details
|
28 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4309
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4152
+user: App\Entity\User {#4134 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
This is really great info! I never knew Multipass existed, thanks for sharing.\n
\n
For macOS, [Homebrew](https://brew.sh) can be used to selectively replace certain parts of the coreutils with the GNU versions\n
\n
Edit: On reviewing the script you mentioned, that’s exactly what it does. It uses Homebrew to replace all the coreutils in one go
"""
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1727967045 {#4159
date: 2024-10-03 16:50:45.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4150 …}
+nested: Doctrine\ORM\PersistentCollection {#4148 …}
+votes: Doctrine\ORM\PersistentCollection {#4146 …}
+reports: Doctrine\ORM\PersistentCollection {#4145 …}
+favourites: Doctrine\ORM\PersistentCollection {#4136 …}
+notifications: Doctrine\ORM\PersistentCollection {#4139 …}
-id: 334172
-bodyTs: "'brew.sh':17 'certain':24 'coreutil':28,53 'edit':33 'exact':42 'exist':10 'gnu':31 'go':56 'great':4 'homebrew':16,48 'info':5 'knew':8 'maco':15 'mention':39 'multipass':9 'never':7 'one':55 'part':25 'realli':3 'replac':23,50 'review':35 'script':37 'select':22 'share':13 'thank':11 'use':20,47 'version':32"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943941"
+editedAt: DateTimeImmutable @1727964293 {#4160
date: 2024-10-03 16:04:53.0 +02:00
}
+createdAt: DateTimeImmutable @1706020343 {#4157
date: 2024-01-23 15:32:23.0 +01:00
}
}
+root: App\Entity\EntryComment {#4152}
+body: """
You’re welcome! I stumbled across Multipass when I was looking for virtual machine options for the m1 mac mini I’m working on. I specifically was trying to get away from using the mac coreutils for a consistent syntax experience, and Multipass has been working perfectly for that.\n
\n
It was only after I’d been using Multipass already that I stumbled across that script, and planned to take a look at it to possibly implement on my machine. I didn’t realize that Homebrew allowed for replacing the coreutils with the GNU versions. Another thing learned!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021374 {#4310
date: 2024-01-23 15:49:34.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@ABeeinSpace@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4306 …}
+nested: Doctrine\ORM\PersistentCollection {#4302 …}
+votes: Doctrine\ORM\PersistentCollection {#4300 …}
+reports: Doctrine\ORM\PersistentCollection {#4315 …}
+favourites: Doctrine\ORM\PersistentCollection {#4317 …}
+notifications: Doctrine\ORM\PersistentCollection {#4319 …}
-id: 334216
-bodyTs: "'across':6,63 'allow':86 'alreadi':59 'anoth':95 'away':31 'consist':39 'coreutil':36,90 'd':55 'didn':81 'experi':41 'get':30 'gnu':93 'homebrew':85 'implement':76 'learn':97 'look':11,71 'm':22 'm1':18 'mac':19,35 'machin':14,79 'mini':20 'multipass':7,43,58 'option':15 'perfect':47 'plan':67 'possibl':75 're':2 'realiz':83 'replac':88 'script':65 'specif':26 'stumbl':5,62 'syntax':40 'take':69 'thing':96 'tri':28 'use':33,57 'version':94 'virtual':13 'welcom':3 'work':23,46"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944280"
+editedAt: null
+createdAt: DateTimeImmutable @1706021374 {#4313
date: 2024-01-23 15:49:34.0 +01:00
}
} |
|
Show voter details
|
29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
} |
|
Show voter details
|
31 |
DENIED
|
edit
|
App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
} |
|
Show voter details
|
32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
} |
|
Show voter details
|
33 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
34 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
} |
|
Show voter details
|
35 |
DENIED
|
edit
|
App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
} |
|
Show voter details
|
36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
} |
|
Show voter details
|
37 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
38 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4362
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: """
It’s definitely a skill that I haven’t mastered either! That being said I think it’s one of the pillars of being a bonafide “super user” and I’d like to set there one day :)\n
\n
Maybe I’ll take inspiration from this post and write something up about what I learn in the future about manpages.\n
\n
Cheers and happy tinkering!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706026578 {#4363
date: 2024-01-23 17:16:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4359 …}
+nested: Doctrine\ORM\PersistentCollection {#4355 …}
+votes: Doctrine\ORM\PersistentCollection {#4353 …}
+reports: Doctrine\ORM\PersistentCollection {#4368 …}
+favourites: Doctrine\ORM\PersistentCollection {#4370 …}
+notifications: Doctrine\ORM\PersistentCollection {#4372 …}
-id: 334385
-bodyTs: "'bonafid':26 'cheer':59 'd':31 'day':37 'definit':3 'either':11 'futur':56 'happi':61 'haven':8 'inspir':42 'learn':53 'like':32 'll':40 'manpag':58 'master':10 'mayb':38 'one':19,36 'pillar':22 'post':45 'said':14 'set':34 'skill':5 'someth':48 'super':27 'take':41 'think':16 'tinker':62 'user':28 'write':47"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945857"
+editedAt: null
+createdAt: DateTimeImmutable @1706026578 {#4366
date: 2024-01-23 17:16:18.0 +01:00
}
} |
|
Show voter details
|
39 |
DENIED
|
edit
|
App\Entity\EntryComment {#4362
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: """
It’s definitely a skill that I haven’t mastered either! That being said I think it’s one of the pillars of being a bonafide “super user” and I’d like to set there one day :)\n
\n
Maybe I’ll take inspiration from this post and write something up about what I learn in the future about manpages.\n
\n
Cheers and happy tinkering!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706026578 {#4363
date: 2024-01-23 17:16:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4359 …}
+nested: Doctrine\ORM\PersistentCollection {#4355 …}
+votes: Doctrine\ORM\PersistentCollection {#4353 …}
+reports: Doctrine\ORM\PersistentCollection {#4368 …}
+favourites: Doctrine\ORM\PersistentCollection {#4370 …}
+notifications: Doctrine\ORM\PersistentCollection {#4372 …}
-id: 334385
-bodyTs: "'bonafid':26 'cheer':59 'd':31 'day':37 'definit':3 'either':11 'futur':56 'happi':61 'haven':8 'inspir':42 'learn':53 'like':32 'll':40 'manpag':58 'master':10 'mayb':38 'one':19,36 'pillar':22 'post':45 'said':14 'set':34 'skill':5 'someth':48 'super':27 'take':41 'think':16 'tinker':62 'user':28 'write':47"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945857"
+editedAt: null
+createdAt: DateTimeImmutable @1706026578 {#4366
date: 2024-01-23 17:16:18.0 +01:00
}
} |
|
Show voter details
|
40 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4362
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: """
It’s definitely a skill that I haven’t mastered either! That being said I think it’s one of the pillars of being a bonafide “super user” and I’d like to set there one day :)\n
\n
Maybe I’ll take inspiration from this post and write something up about what I learn in the future about manpages.\n
\n
Cheers and happy tinkering!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706026578 {#4363
date: 2024-01-23 17:16:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4359 …}
+nested: Doctrine\ORM\PersistentCollection {#4355 …}
+votes: Doctrine\ORM\PersistentCollection {#4353 …}
+reports: Doctrine\ORM\PersistentCollection {#4368 …}
+favourites: Doctrine\ORM\PersistentCollection {#4370 …}
+notifications: Doctrine\ORM\PersistentCollection {#4372 …}
-id: 334385
-bodyTs: "'bonafid':26 'cheer':59 'd':31 'day':37 'definit':3 'either':11 'futur':56 'happi':61 'haven':8 'inspir':42 'learn':53 'like':32 'll':40 'manpag':58 'master':10 'mayb':38 'one':19,36 'pillar':22 'post':45 'said':14 'set':34 'skill':5 'someth':48 'super':27 'take':41 'think':16 'tinker':62 'user':28 'write':47"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945857"
+editedAt: null
+createdAt: DateTimeImmutable @1706026578 {#4366
date: 2024-01-23 17:16:18.0 +01:00
}
} |
|
Show voter details
|
41 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
42 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4391
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4362
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: """
It’s definitely a skill that I haven’t mastered either! That being said I think it’s one of the pillars of being a bonafide “super user” and I’d like to set there one day :)\n
\n
Maybe I’ll take inspiration from this post and write something up about what I learn in the future about manpages.\n
\n
Cheers and happy tinkering!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706026578 {#4363
date: 2024-01-23 17:16:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4359 …}
+nested: Doctrine\ORM\PersistentCollection {#4355 …}
+votes: Doctrine\ORM\PersistentCollection {#4353 …}
+reports: Doctrine\ORM\PersistentCollection {#4368 …}
+favourites: Doctrine\ORM\PersistentCollection {#4370 …}
+notifications: Doctrine\ORM\PersistentCollection {#4372 …}
-id: 334385
-bodyTs: "'bonafid':26 'cheer':59 'd':31 'day':37 'definit':3 'either':11 'futur':56 'happi':61 'haven':8 'inspir':42 'learn':53 'like':32 'll':40 'manpag':58 'master':10 'mayb':38 'one':19,36 'pillar':22 'post':45 'said':14 'set':34 'skill':5 'someth':48 'super':27 'take':41 'think':16 'tinker':62 'user':28 'write':47"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945857"
+editedAt: null
+createdAt: DateTimeImmutable @1706026578 {#4366
date: 2024-01-23 17:16:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#4396
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4399 …}
+nested: Doctrine\ORM\PersistentCollection {#4403 …}
+votes: Doctrine\ORM\PersistentCollection {#4405 …}
+reports: Doctrine\ORM\PersistentCollection {#4406 …}
+favourites: Doctrine\ORM\PersistentCollection {#4408 …}
+notifications: Doctrine\ORM\PersistentCollection {#4410 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#4393
date: 2024-01-23 17:40:40.0 +01:00
}
} |
|
Show voter details
|
43 |
DENIED
|
edit
|
App\Entity\EntryComment {#4391
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4362
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: """
It’s definitely a skill that I haven’t mastered either! That being said I think it’s one of the pillars of being a bonafide “super user” and I’d like to set there one day :)\n
\n
Maybe I’ll take inspiration from this post and write something up about what I learn in the future about manpages.\n
\n
Cheers and happy tinkering!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706026578 {#4363
date: 2024-01-23 17:16:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4359 …}
+nested: Doctrine\ORM\PersistentCollection {#4355 …}
+votes: Doctrine\ORM\PersistentCollection {#4353 …}
+reports: Doctrine\ORM\PersistentCollection {#4368 …}
+favourites: Doctrine\ORM\PersistentCollection {#4370 …}
+notifications: Doctrine\ORM\PersistentCollection {#4372 …}
-id: 334385
-bodyTs: "'bonafid':26 'cheer':59 'd':31 'day':37 'definit':3 'either':11 'futur':56 'happi':61 'haven':8 'inspir':42 'learn':53 'like':32 'll':40 'manpag':58 'master':10 'mayb':38 'one':19,36 'pillar':22 'post':45 'said':14 'set':34 'skill':5 'someth':48 'super':27 'take':41 'think':16 'tinker':62 'user':28 'write':47"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945857"
+editedAt: null
+createdAt: DateTimeImmutable @1706026578 {#4366
date: 2024-01-23 17:16:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#4396
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4399 …}
+nested: Doctrine\ORM\PersistentCollection {#4403 …}
+votes: Doctrine\ORM\PersistentCollection {#4405 …}
+reports: Doctrine\ORM\PersistentCollection {#4406 …}
+favourites: Doctrine\ORM\PersistentCollection {#4408 …}
+notifications: Doctrine\ORM\PersistentCollection {#4410 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#4393
date: 2024-01-23 17:40:40.0 +01:00
}
} |
|
Show voter details
|
44 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4391
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "What-I-ve-Learned-This-Week"
+title: "What I've Learned This Week"
+url: null
+body: """
I’ve been homelabbing for a few years now, and recently I’ve really been focusing in on learning how to use gnu/linux. I thought it might be fun to periodically share the things I’ve been learning. The stand outs for me this past week were:\n
\n
1. Use the full path when referencing files and directories in bash scripts *(Edit: when it makes sense, which is something I’m also still learning. This mkaes sense when the files will always be located in the same place.)*\n
2. In a bash script, the variable `${file##*/}` will get you the name of the file your script is handling *(example, when looping over files in a directory. I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works)*\n
3. Ubuntu gets a ton of justifiable criticism, but I find [Canonical’s Multipass](https://multipass.run/) to be a great tool for spinning up Linux virtual machines. Especially on Apple silicon macs.\n
4. Piping the output of `ls` to `grep` as a variable in a path is a great way to change to a directory you know exists but can’t remember the exact name of. *(Example:* `cd ~/movies/“$(ls ~/movies | grep movie-name)”`*)*\n
5. The reason Mac cli utilities have syntax variations compared to the standard gnu/linux utilities is because macOS and its cli utilities are BSD based. This was information I knew at a high level, but had never really understood the implications of until this week.\n
6. Related to point 5, if you’re on macOS trying to learn and you’re annoyed by the syntax differences between bsd and gnu utilities, you can run [this script from darksonic37 on github](https://github.com/darksonic37/linuxify) to remove the bsd utilities from macOS and replace them with their gnu counterparts. *(I have not run or reviewed the script. I found mulitpass first, and so far I’m happy using the Ubuntu virtual machine)*
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 10
+favouriteCount: 51
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1728225865 {#2418
date: 2024-10-06 16:44:25.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 32596
-titleTs: "'learn':4 've':3 'week':6"
-bodyTs: "'/)':153 '/darksonic37/linuxify)':295 '/movies':206,208 '1':48 '2':88 '3':137 '4':170 '5':213,262 '6':258 'also':71 'alway':81 'annoy':274 'appl':167 'base':237 'bash':59,91 'believ':117 'bsd':236,280,299 'came':131 'canon':148 'cd':205 'chang':189 'cli':217,233 'compar':222 'counterpart':309 'critic':144 'darksonic37':290 'differ':278 'directori':57,115,192 'edit':61 'especi':165 'exact':201 'exampl':108,204 'exist':195 'far':324 'file':55,79,95,103,112 'find':147 'first':321 'focus':16 'found':319 'full':51 'fun':29 'get':97,139 'github':292 'github.com':294 'github.com/darksonic37/linuxify)':293 'gnu':282,308 'gnu/linux':23,226 'great':157,186 'grep':177,209 'handl':107 'happi':327 'high':245 'homelab':4 'implic':253 'inform':240 'justifi':143 'knew':242 'know':194 'learn':19,38,73,128,270 'level':246 'linux':162 'locat':83 'loop':110 'ls':175,207 'm':70,326 'mac':169,216 'machin':164,332 'maco':230,267,302 'make':64 'might':27 'mkae':75 'movi':211 'movie-nam':210 'mulitpass':320 'multipass':150 'multipass.run':152 'multipass.run/)':151 'name':100,202,212 'need':126 'never':249 'out':41 'output':173 'past':45 'path':52,183 'period':31 'pipe':171 'place':87 'point':261 're':265,273 'realli':14,250 'reason':215 'recent':11 'referenc':54 'relat':259 'rememb':199 'remov':297 'replac':304 'review':315 'run':286,313 'script':60,92,105,288,317 'sens':65,76 'share':32 'shell/bash':121 'silicon':168 'someth':68 'spin':160 'stand':40 'standard':122,225 'still':72 'syntax':220,277 'thing':34 'thought':25 'ton':141 'tool':158 'tri':268 'ubuntu':138,330 'understood':251 'use':22,49,328 'util':218,227,234,283,300 'variabl':94,123,180 'variat':221 've':2,13,36 'virtual':163,331 'way':187 'week':46,257 'work':136 'year':8"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1706105867
+visibility: "visible "
+apId: "https://lemmy.world/post/11082140"
+editedAt: DateTimeImmutable @1727976369 {#1858
date: 2024-10-03 19:26:09.0 +02:00
}
+createdAt: DateTimeImmutable @1706019467 {#2388
date: 2024-01-23 15:17:47.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4362
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4323
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4225
+user: App\Entity\User {#4238 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.\n
\n
> I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works\n
\n
You may know this already, but I’ve found the `man` (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for `file`, `sh`, and `bash` that may help you track it down.\n
\n
```\n
\n
<span style="font-style:italic;color:#969896;"># simply type man [some-command]\n
</span><span style="color:#323232;">man file\n
</span><span style="color:#323232;">man sh\n
</span><span style="color:#323232;">man bash\n
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!\n
</span>\n
```\n
\n
Manpages are local to your system so they’re extremely fast to pull up and searchable!\n
\n
Here’s some online info on `man` if you’re interested:\n
\n
[(30 sec read) Unix stack exchange tips & tricks](https://unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)\n
\n
[(5 min read) It’s FOSS writeup](https://itsfoss.com/linux-man-page-guide/)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1727985788 {#4219
date: 2024-10-03 22:03:08.0 +02:00
}
+ip: null
+tags: [
"969896"
"323232"
]
+mentions: [
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
"@harsh3466@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4228 …}
+votes: Doctrine\ORM\PersistentCollection {#4230 …}
+reports: Doctrine\ORM\PersistentCollection {#4232 …}
+favourites: Doctrine\ORM\PersistentCollection {#4234 …}
+notifications: Doctrine\ORM\PersistentCollection {#4236 …}
-id: 334177
-bodyTs: "'/linux-man-page-guide/)':173 '/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':163 '30':153 '5':164 'alreadi':52 'around':13 'bash':99,118 'believ':28 'benefit':8 'came':42 'command':112 'cuff':85 'entri':94 'exchang':158 'extrem':135 'fast':136 'file':82,96,114 'foss':169 'found':56 'get':124 'gnu/linux':72 'haven':10 'help':102 'info':146 'insight':80 'interest':152 'itsfoss.com':172 'itsfoss.com/linux-man-page-guide/)':171 'know':26,50 'learn':39 'local':128 'maco':15 'man':58,109,113,115,117,119,120,148 'manpag':126 'manual':61,93 'may':49,101 'mention':22 'mess':12 'min':165 'much':16,79 'need':37 'nice':24 'one':65 'onlin':145 'public':7 'pull':138 'put':3 're':134,151 'read':155,166 'searchabl':141 'sec':154 'sh':97,116 'shell/bash':32 'simpli':107 'some-command':110 'space':74 'stack':157 'standard':33 'start':125 'system':131 'tell':89 'thank':1 'thing':19,70 'tip':159 'track':104 'trick':160 'type':108 'unix':156 'unix.stackexchange.com':162 'unix.stackexchange.com/questions/1841/tricks-and-tips-for-finding-information-in-man-pages)':161 'use':69,122 'user':73 'util':62 'variabl':34 've':21,55 'work':47 'writeup':170"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6943967"
+editedAt: DateTimeImmutable @1727966465 {#4220
date: 2024-10-03 16:41:05.0 +02:00
}
+createdAt: DateTimeImmutable @1706020458 {#4221
date: 2024-01-23 15:34:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down."
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706021126 {#4321
date: 2024-01-23 15:45:26.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4324 …}
+nested: Doctrine\ORM\PersistentCollection {#4326 …}
+votes: Doctrine\ORM\PersistentCollection {#4328 …}
+reports: Doctrine\ORM\PersistentCollection {#4330 …}
+favourites: Doctrine\ORM\PersistentCollection {#4332 …}
+notifications: Doctrine\ORM\PersistentCollection {#4334 …}
-id: 334208
-bodyTs: "'broken':51 'command':45 'end':37 'enough':23 'exampl':46 'exchang':41 'help':11,50 'huge':10 'know':22 'look':42 'm':14 'man':5,28 'page':6,29 'someon':48 'sometim':18 'stack':40 'tell':31 'thank':2 'thing':17 'understand':25 'usual':36 'work':15 'yes':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6944196"
+editedAt: null
+createdAt: DateTimeImmutable @1706021126 {#4322
date: 2024-01-23 15:45:26.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: """
It’s definitely a skill that I haven’t mastered either! That being said I think it’s one of the pillars of being a bonafide “super user” and I’d like to set there one day :)\n
\n
Maybe I’ll take inspiration from this post and write something up about what I learn in the future about manpages.\n
\n
Cheers and happy tinkering!
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1706026578 {#4363
date: 2024-01-23 17:16:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4359 …}
+nested: Doctrine\ORM\PersistentCollection {#4355 …}
+votes: Doctrine\ORM\PersistentCollection {#4353 …}
+reports: Doctrine\ORM\PersistentCollection {#4368 …}
+favourites: Doctrine\ORM\PersistentCollection {#4370 …}
+notifications: Doctrine\ORM\PersistentCollection {#4372 …}
-id: 334385
-bodyTs: "'bonafid':26 'cheer':59 'd':31 'day':37 'definit':3 'either':11 'futur':56 'happi':61 'haven':8 'inspir':42 'learn':53 'like':32 'll':40 'manpag':58 'master':10 'mayb':38 'one':19,36 'pillar':22 'post':45 'said':14 'set':34 'skill':5 'someth':48 'super':27 'take':41 'think':16 'tinker':62 'user':28 'write':47"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6945857"
+editedAt: null
+createdAt: DateTimeImmutable @1706026578 {#4366
date: 2024-01-23 17:16:18.0 +01:00
}
}
+root: App\Entity\EntryComment {#4225}
+body: "I agree, and I’d like to be there as well so that I can easily read and understand a man page."
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1706028040 {#4396
date: 2024-01-23 17:40:40.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@harsh3466@lemmy.world"
"@genie@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4399 …}
+nested: Doctrine\ORM\PersistentCollection {#4403 …}
+votes: Doctrine\ORM\PersistentCollection {#4405 …}
+reports: Doctrine\ORM\PersistentCollection {#4406 …}
+favourites: Doctrine\ORM\PersistentCollection {#4408 …}
+notifications: Doctrine\ORM\PersistentCollection {#4410 …}
-id: 334435
-bodyTs: "'agre':2 'd':5 'easili':16 'like':6 'man':21 'page':22 'read':17 'understand':19 'well':11"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6946315"
+editedAt: null
+createdAt: DateTimeImmutable @1706028040 {#4393
date: 2024-01-23 17:40:40.0 +01:00
}
} |
|
Show voter details
|
45 |
DENIED
|
edit
|
App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
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).\n
\n
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.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|