LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2024, 09:55 PM   #31
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142

I've found that the command line is always faster (that is, as long as you know the commands).
 
Old 01-18-2024, 10:25 PM   #32
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
One of my first computers was an IBM 286. It had DOS and Windows 3.1. I actually preferred using DOS over Windows. A few years later when I had a 586, I was introduced to Red Hat 6.0. I already felt comfortable with a CLI, and found the Linux equivalents to DOS commands were intuitive enough to learn quickly. I had Windows and Linux installed on separate hard drives. I never had luck getting Linux to connect to the Internet via dial-up, so I had to boot the Windows drive to connect to the Internet for help if I was really stuck on something.

Some things are easier to learn than others. I never really got into vi or vim. I've stuck with nano and it just works for me. My knowledge of vim is nothing more than :q!. I'm actually more familiar with ed.

My first "scripts" were really nothing more than a few lines of commands to run. Now I have scripts I've written that are hundreds of lines to automate some tasks.

Man pages in Linux are hit or miss for how helpful they are. I've seen man pages give a brief description of their purpose and tell you to see --help for options. The Arch wiki is a good resource. (regardless of which distro you use)

For some things like grep, I didn't find it difficult to learn. I think in my early days, I picked up some bad habits following tutorials online giving examples cat file.txt | grep 'something' instead of simply grep 'something' file.txt or cat file.txt | less instead of simply less file.txt.
 
1 members found this post helpful.
Old 01-19-2024, 01:08 AM   #33
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by disk_bearing View Post
That's fascinating and actually makes sense. The inflexibility of paper and ink has special cognitive properties. Check out my multimonitor setup.

Attachment 42437

Where do yous like to go for underground scripts and tricks?
I remember, I had a vi cheat sheet on the wall.
 
Old 01-19-2024, 11:53 AM   #34
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,660
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Two simple examples from my experience:

(1) Although most of the (different …) editors that I find myself using have some “support” for git version control, to me they are both “not the same” and “tedious.” I simply open a terminal window, select the project directory, and: … ”biddy-boom!” it’s done. I know the (small handful of) necessary commands by heart.

(2) So far as I know, many of the things that a developer routinely needs to so, such as updating [language-specific …] packages, have only a “command-line” interface.

Perhaps it’s just because I have to deal with so many “GUIs” at a time that I find “the CLI” more convenient.

Bottom line as I see it: “don’t be afraid of the console.” It enables you to “execute any program that you want to, anytime that you want to, as long as you know what you are doing.” Every GUI-tool builder “built on top of this.” And some of them did it extremely well.

Last edited by sundialsvcs; 01-19-2024 at 11:55 AM.
 
2 members found this post helpful.
Old 01-19-2024, 02:11 PM   #35
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 364

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by replica9000 View Post
cat file.txt | less
Let me introduce you to <file.txt cat | less

 
1 members found this post helpful.
Old 01-19-2024, 03:53 PM   #36
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,660
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Lessee: grep -rilw pattern ... | xargs ...

Yep, you'll get used to it in no time.

Although the syntax at first appears to be "daunting," the practical idea is, "well ... practical."
 
1 members found this post helpful.
Old 01-19-2024, 07:53 PM   #37
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Lightbulb

Quote:
Originally Posted by disk_bearing View Post
That's fascinating and actually makes sense. The inflexibility of paper and ink has special cognitive properties. Check out my multimonitor setup.

Attachment 42437

Where do yous like to go for underground scripts and tricks?
Start with following basic scripting (provided on link below), copy and paste 2 or 3 lines from the link. Observe and check what each line does, don't go and delve immediately for complex scripts or how the algorithm works why it produces such as output. Just remember let's say for this scenario or processes you need this commands.

Check out this links:
https://www.rackspace.com/blog/funda...hell-scripting
https://www.freecodecamp.org/news/ba...for-beginners/

The inflexibility of paper and ink has special cognitive properties << if you prefer this method, then I suggest print whatever you find on the internet.

Good luck! Just enjoy the journey!

Last edited by JJJCR; 01-22-2024 at 12:28 AM. Reason: edit
 
Old 01-19-2024, 11:55 PM   #38
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
The inflexibility of paper and ink has special cognitive properties << if you prefer this method, then I suggest print whatever you find on the internet.
I wonder how I could omit this in my previous post. Having a book lying beside the keyboard and – provided the index at the end is worth the designation – to *know* that you can return to the very same chapter *now* and as often as you want to, has been a comfortable way to learn.

Although I also learned to discard some books which I had payed for but which turned out to be failures. With hindsight, this had been proof of my progress, too, like a small, paid certification.

Last edited by Michael Uplawski; 01-20-2024 at 03:18 AM. Reason: language WIP
 
2 members found this post helpful.
Old 01-20-2024, 04:04 AM   #39
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
i used to use this command when lookin for info about sed - awk - bash etc.
https://www.google.fi/search?q=(chea...+regex+OR+bash)

Last edited by //////; 01-20-2024 at 04:05 AM.
 
Old 01-22-2024, 12:55 AM   #40
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Wink

Quote:
Originally Posted by sundialsvcs View Post
Lessee: grep -rilw pattern ... | xargs ...

Yep, you'll get used to it in no time.

Although the syntax at first appears to be "daunting," the practical idea is, "well ... practical."
grep -rilw pattern << very nice trick

Yep, you'll get used to it in no time. << word of encouragement. I completely agree, instead of doing other stuff that doesn't really add value to what is necessary just focus on things that will help to contribute and attain the goal and yes in no time, only fat fingers will be the cause of the issue
 
Old 01-23-2024, 05:43 PM   #41
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,660
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
There are probably thirty or forty “command-line commands and ‘pipe sequences’” that I know by heart. This is the practical knowledge that daily keeps me going. But it is impossible to know everything about anything, and it turns out that you don’t actually have to.

(N.B.: By “pipe sequence,” I mean where the output of one command is “piped” into a downstream command using the “|” operator.)

For example: ”git.” A tool that I encounter almost every day. And, “I know about it” exactly what I need to know, and I won’t learn more until my next engagement requires me to. Am I therefore very inclined to “puzzle out” how [this-or-that] editor tried to “GUI-ize” it? Frankly, no. Because I know that, if I can get to a terminal (CLI) and then get to the directory, I can accomplish the necessary task “by reflex.”

Or, as above: [b]grep -rilw[/b … ”give me a list of every file, in the specified directory and every one of its subdirectories, which contains the following ‘word’ (delimited by ‘whitespace’).” How long would it take you to convince a GUI to do that, if its implementor thought of it and chose to implement it? Or did you presuppose that you would have to “write a brand-new program?

And then: ”(pipe this output stream into) … No. You have just stepped out of “GUI-land” and into ”power tools.”

The “command line” should be properly regarded as being alongside graphical environments. However, it is entirely understandable that this idea might be very alien to some. It may well be that you have never before encountered a computing environment which had this property. “We understand.”

Last edited by sundialsvcs; 01-23-2024 at 06:08 PM.
 
1 members found this post helpful.
Old 01-24-2024, 12:42 AM   #42
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,576
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by sundialsvcs View Post
Or, as above: [b]grep -rilw[/b … ”give me a list of every file, in the specified directory and every one of its subdirectories, which contains the following ‘word’ (delimited by ‘whitespace’).” How long would it take you to convince a GUI to do that, if its implementor thought of it and chose to implement it? Or did you presuppose that you would have to “write a brand-new program?
I haven't deliberately installed a file manager in a Linux system for years because it's so much quicker and simpler to use the coreutils tools with a grep filter when working in a big system directory.
 
Old 01-24-2024, 04:54 PM   #43
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by hazel View Post
I haven't deliberately installed a file manager in a Linux system for years because it's so much quicker and simpler to use the coreutils tools with a grep filter when working in a big system directory.

I've been using nnn for my file manager. Runs in the terminal. Useful for navigating directories quickly or quickly selecting multiple files/dirs from multiple directories to process.
 
Old 01-27-2024, 03:18 PM   #44
niceflipper8827
Member
 
Registered: Sep 2023
Location: Washington State,USA
Distribution: ChromeOS,SlackWare,Android and Lubuntu
Posts: 68

Rep: Reputation: 2
While I don't hail from the days of either the early days of computing mainframes and early dos, however, I was raised on a dos based machines at school I learned how to type with Mavis Beacon teaches typing on DOS 4. x through 6. x. I remember the first computer that my father purchased for our family was a Dell machine with meager specifications which came with either MS-DOS above versions 4 or 5 of MS-DOS and by the mid-nineties my father purchased for our family. This computer came with MS-DOS or another we upgraded to Windows 95 then Windows 98 and finally finished the early Windows era with 98se. As started to become more skillful with computers around XP I decided to poke around with the BSDs and Linux.

It may seem ridiculous to certain veterans of the command line ways that I recently (23 + years Linux user) would cut their Linux Teeth by jumping in feet first and configuring a local file and print server with an early 200s version of Red Hat Linux (pre IBM Days). I also learned how to solve my self-inflicted woes by either turning to Google or a forum like LQ or just pure trial and error. The steepest learning curve that I have is Over the aforementioned 23 + years of using both GNU/Linux and the BSD distributions.

I learned a whole lot more about how the software works once I could come by second hand pcs that I would slap either GNU/Linux or one of the many flavors of the BSD operating system heck I've even gotten not only Broadcom chipset based Wifi adapters working under a flavor of BSD but also to get hard to get working Nvidia based video cards working visa-via e of how either using the drivers from the Freebsd ports system or the pre-compiled packages. Ive also gain a great deal of knowledge of how to compile not on just packages but also customize and compile my own kernels on both GNU/Linux and FreeBSD.
 
Old 01-28-2024, 12:34 AM   #45
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,576
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by niceflipper8827 View Post
Ive also gain a great deal of knowledge of how to compile not on just packages but also customize and compile my own kernels on both GNU/Linux and FreeBSD.
I thought building your own kernel was frowned upon in the BSD world because of the tight integration of the base system. I used to do it in Linux back in the days when I used very limited hardware. I got sick and tired of watching those dots crawl across the screen as LILO read the kernel in, knowing that most of what it was reading was not actually going to be used.

One of my favorite distros in those days was Crux, because it ran fast even on old hardware, but they made you build your kernel locally. I was surprised to find out how easy it is to do that using menuconfig, though of course the actual compilation took ages. Kernel Help is the most amazing help system that I have ever seen, the only one I know of that actually tells you whether or not you need to use a given option. And of course a home-made kernel doesn't need an initrd, so that was another bit of mystification done away with.

But now that I'm old and tired and have a 4-core cpu and 4 GB of ram, I don't do that any more.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make emails have the date they were written instead of the date that they were actually sent? dedec0 Linux - General 10 08-26-2018 01:09 AM
LXer: If you were on a desert island, which license would you take with you? LXer Syndicated Linux News 0 07-20-2017 12:45 AM
How old are you and how old were you when you began using Gnu/Linux Knightron General 27 02-15-2012 05:00 AM
got a Fedora 9 indication that yum updates were available, but there were no updates landonmkelsey Linux - Software 12 02-08-2009 09:53 AM
Oh were oh were has my sound card gone? mst700 Linux - Newbie 3 07-13-2004 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration