Ask Slashdot: Command Line Interfaces -- What Is Out There? 383
Mars729 writes "GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software. However, there is software out there with command-line options that can make software features accessible to power users and programmers. Some important ones I have uncovered are:
- Exiftool: A command-line application that can read/write almost any kind of metadata contained in almost any filetype
- Imagemagick: This and similar software like GraphicsMagick is a full-feature toolkit for displaying, converting and editing image files.
- Irfanview: Like Imagemagick but faster, although it has much fewer features.
FFMpeg: For video files - VLC: For audio and video files
- Aspell: A command line spell checker
- Google Static Maps API: A URL with coordinates, markers, zoom levels and other options to show a custom map from Google Maps. (I just uncovered this: no need to learn KML!)
Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages. Also useful but less accessible and with a steeper learning curve are software with APIs and scripting. Examples would be Visual Basic for Applications in office software and groovy scripting for Freeplane. What else is out there?"
systemd is there (Score:2, Informative)
You all will love to use
systemctl
journalctl
The first shows all services running on Linux
The last shows all binary logging on Linux
Get used to those commands because its the defacto standard now.
CLI's Are Not Walled? (Score:3)
At best, I'd call GUI's walled gardens, and CLI's (larger) fenced in fields with rocks and weeds along with the trees and flowers. Definitely more versatile, not as friendly for some uses.
To get out of the boundaries of either a GUI or a CL
Re:CLI's Are Not Walled? (Score:5, Informative)
The best mix I ever saw was with Apple's MPW Commando interface. They had a unix like script language, but when you couldn't recall the special arcane syntax of some command, you could just hilite the command name and hit a key. A Commando dialog box came up formatted with radio buttons, checkboxes, etc. which recorded every dodad the command could use. Clicking and typing into the dialog fields built the text command for you in a pane at the bottom of the dialog box. When you were done, you could hit the run button or copy and paste the command into a command line window or paste it into a script you were building.
Re: (Score:2)
in some cases gui's only seem like walled gardens because the user doesn't know how to do something, but that doesn't imply that they couldn't
everything is easy when you know how
gnome2 has a decent little tool called gconf-editor, which allows you to drill fairly deep into gui configuration
i'm sure even "windoze" could do a lot of cool things if users bothered to learn about the registry... maybe they shouldn't have to, but if you are willing to learn cli as an alternative it would be reasonable to assume t
Re: (Score:2)
Here you go, lil buddy [launchpad.net], just compile and install away! Make sure you specify /usr/local/wtfbin for the target install dir. Cheers and happy new year!
Re: (Score:2)
If you want to learn something then ask a specific question.
This is the fallacy which causes government inefficiency. In order to know what to ask you need to know what your answer is.
...no one will want to spend that much effort teaching you anything if you can't be bothered to make the effort to teach yourself anything.
Were you home schooled and still inexplicably separated from the rest of society? No? Wait, you're just being too lazy to properly formulate an argument, aren't you?
Re: systemd is there (Score:3)
Your counterpoint about about teaching seems far less thought out than GP's original remark.
Re: systemd is there (Score:4, Informative)
You don't get a salary for educating the children. You get culture, pride, REAL security, population control, sustainable development... Just what am I listing here! You're a goddamaned idiot, aren't you? Admit it!
Re:New users don't know about CLI (Score:5, Interesting)
We live in the 21th century. By now no one should use things like grep, sed or awk anymore.
Yes. It would be wrong to use tried, tested and computationally efficient tools. If it doesn't have a GUI that slows me down and reduces my operational efficiency, and a crapload of bugs that won't be fixed before being obsoleted, I don't want to know about it.
Re:New users don't know about CLI (Score:5, Informative)
New users never heard about bash. We live in the 21th century. By now no one should use things like grep, sed or awk anymore. The developers around systemd make sure that this functionality is soon hidden away from the audience.
Right, and that's the problem, new users don't understand how to use command line tools so everything gets loaded into a GUI like Excel or Access. We had a user insist that he had to have MS Access so he could process a big log file to extract a few records from it -- it was too big for Excel. He was a couple hours into figuring out how to get the file loaded into an Access table when someone asked me if I could help. 10 minutes after installing ActiveState Perl, I wrote a script to extract the records they needed, it ran for a couple hours to churn through over 100 gigabytes of data (limited by the speed of the fileserver), then after we had the data, I used a couple regular expressions to pull the data fields they needed out of a free form text field, and then 20 minutes later, used the data in the file to output the SQL commands that they needed to fix up the database (which is why they where looking through the file in the first place). They had originally planned on spending at least 3 days on this project. The Windows "find" command line took may have helped preprocess the file, but its lack of regular expression support would have meant running it dozens of times to get all of the data they needed.
Command line tools are still useful, even in the 21th century. If I didn't have Perl, then grep and/or awk would have been able to extract the data with a single pass through the file.
What is this? (Score:4, Insightful)
Re:What is this? (Score:5, Informative)
Re: What is this? (Score:3, Informative)
Your way of thinking needs an upgrade. Soon everyone needs to understand the concepts of systemd. That means your overall usage of grep, sed, awk, etc. will decrease. Wayland will bring another change in your life. Hope you welcome these. Oh I forgot, you won't be asked :)
Re: What is this? (Score:5, Insightful)
It appears that lots of people recently have been condemned to reinvent Unix, poorly.
Re: (Score:3, Funny)
emacs!? why... in my day we used to program with rocks... where do you think the name bash came from anyways? get off my lawn!
Re: (Score:3)
Pretty much my initial response, too.
But you know what, I hadn't made any realistic new year's resolutions actually, but now I am thinking it would be nice if instead of the reflexive elitist slashdot reaction to new users (yes I wrote that out in full) let's just try to help these folks feel at home and somewhat supported in our little world.
My 2 cents: learn shell scripting. It's a great way to apply the shell commands you've already learned and a very natural way to learn some more (control structures, l
Re: (Score:3)
it's not really "using the command line" unless you're using the line ... to command things, yourself.
if its automation and communications between system components, it's just protocol of some sorts.. could start saying that pop3 is a commandline then too
Re:What is this? (Score:5, Insightful)
It isn't?
Of course, what you'll quickly find is that the OP isn't the only clueless one. Other Internet newbies like Microsoft and Google have gone out of their way to make their customer's emails illegible.
Re:pop3 and Google (Score:4, Insightful)
Not a problem...
Re: (Score:3)
Comment removed (Score:4, Insightful)
Re:What is this? (Score:4, Insightful)
From my perspective as a Windows programmer/user who is trying to learn more about Linux development: Let me know if you disagree with this analysis.
CLI is mostly useful for programmers and power-users / sys admins, and *nix was built around the concept of lots of small, useful command-line utilities that can be chained together to get useful things done. Visual interfaces, if they exist at all, are often just pretty wrapping around the core functionality available via the CLI.
Windows (and the Mac preceding it) was built from the ground up with visual metaphors to make computing simpler for the masses. Command-lines are typically NOT the primary interface with the computer. Often, programs have built-in scripting to provide the power-user with equivalent CLI power on the *nix systems. Less importance is placed on command-line interoperability. Instead, interoperability is achieved through visual metaphors (drag and dropping files, for instance) or through OS services (OLE).
This is a cultural clash which explains why an OS like Linux will probably never innovate in regards to visual interfaces - I think perhaps its just not all that important to those that control the core feature sets of the operating systems. Essentially, Windows users tend to see the necessity of falling back to a command-line as a crutch for a system that isn't well designed or fully featured (as you indicated), while *nix users take the opposite view, with the command line as the natural place to work, and the visual interfaces as a crutch to assist those who are not as skilled or don't need the power of the CLI.
I just don't see that perspective changing anytime soon, and so I think UI innovation will tend to be driven by external forces in the *nix world, while the majority of the work still requires a command-line interface to access ALL the important options. BTW, Windows isn't perfect here either, of course. The equivalent in Windows starts with the phrase "Open regedit and search for the key...", but it just seems to happen far less often.
Re:What is this? (Score:5, Insightful)
hate on me ALL you want but anybody who is honest will admit its true,
the hating on you will be for using a blatant "no true scotsman" fallacy, not for disliking the gui. You're a massive wanker for claiming I'm a liar because I disagree with you.
you can completely remove CLI access from Windows and OSX and ya know what? The user would be fine,most wouldn't even notice that it was gone.
Not if the user in question was me. In fact I know quite a lot of people who install the cygwin commandline stuff for Windows because the builtin commandline is not very good. And then there's the MinGW effort. Apparently enough people miss the commandline that there are not one but two competing efforts to bring a good commandline to windows.
Fiven that they're Free that means there are enough people wanting that that there are enough developers from withing that subset to make two.
That's a lot of people and you're dishonest if you don't agree, naturally.
Try removing access to the CLI for just one year in the Linux of your choice, I DARE you.
Why the fuck would I want to do that?
The first time you run into a problem the ONLY CHOICE you will have to fix it is "Open up Bash and Type"...that's it, that is all.
Well, no. That's true in some cases, but then registry hacks are true in some cases in Windows and commandline-fu is the only solution in some cases in OSX. Not sure what your point is.
Hell just ask for a non Bash solution and watch the howls of impotent rage!
So basically, you ask people to donate their time to you for free and they do. They give you an answer in a clear, succint way which doesn't involve the rather tricky comminucation of visual information in a forum and you have the entitledness to complain that they're not helping you "the right way".
Wow, you sound like an asshole.
If there is anything that Android and ARM should have taught it is that the future is NOT some 40+ year old throwback to the age of disco UIs, its intuitive, easy to discover,and easy to learn is THE way of the future!
Except that it's not unless you have very limted horizons. And ARM was in fact developed to run an OS with an integrated commandline.
So, mr. intiutive, how do I script repetitive actions in my workflow on Android?
Linux....except that too many have taken CLI as their religion, their way to "test the faith" and see if the user is "worthy" to be part of the little club.
You're the one who sounds like a religious nutball. I happen to like the commandline. I really don't care if you do. You seem to care that I like it. that's got religious quackery written all over it.
Oh and almost forgot, of course you're dishonest if you don't agree with me.
Re: (Score:3)
My mom uses Linux and she has no idea how to use the CLI at all. Literally none. It works fine.
Re:So, you're saying you want the CLI to atrophy (Score:4, Insightful)
Hairyfeet, back at ya.
I moved to Linux because from Mac OS X *because* of the command line. It is a first place citizen. You can expect almost all programs on it to support commandline options and such.
OSX is based off BSD now, so there are plenty of command tools available to you. All your basic linux commands work in OSX as well as several additional useful OSX command tools that just don't exist elsewhere. I frequently run command line scripts to configure OSX and install numerous pieces of software on several Macs. You can also install Fink, or MacPorts, or Homebrew to install plenty of additional useful software. It's all there if you learn how to use OSX on the command line.
Windows also has a command line, and the vast majority of Windows software can be installed on the command line. There are many useful command line utilities that vastly speed up setup of the a windows system. You could also install cygwin if you really want unix style commands. With powershell, there's less of a need to have cygwin. In a Domain, you can use group policy to manage numerous systems, but that's not available if you're not in a domain. If you manage systems not in a domain, or before you join it to a domain, you can do just about everything on a local trusted network with command line tools in a batch file script or powershell.
Many people think of Windows or OSX as GUI only, or mainly, have never really sat down to find the command line way of doing it because the GUI was always there as a crutch. The GUI was so well done that they never bothered seek out the command line. On linux, the GUI came much, much later. In the beginning, some of the linux GUI, like the early SAMBA config GUI that wiped smb.conf, was quite broken. There's still work to be done with the GUI.
Don't mistake a useful GUI for lack of a command line on OSX or Windows. It's all there and you've just never learned to use it. The linux GUI is not as well designed and still needs more work to get to where Windows and OSX are. That's probably why most linux users are still going to the command line. Eventually, that will change and it will mainly be sysadmins and certain power users that do any command line on linux as well.
Re: (Score:3)
This isn't worthy of being a story, we all grew up using command lines.
At least one of those programs is Windows-only, and all the rest have Windows versions, and Visual Basic is Windows-only.
I'm pretty sure he has little or no familiarity with the UNIX programming environment, and he's not even aware of COM-based programming using third party libraries and components on Windows well enough to know that you can in fact script all Microsoft GUI products, and many third party products on Windows use the same techniques making them fully scriptable as well.
This isn't the first ti
Re: (Score:2)
Re:What is this? (Score:5, Informative)
OP is just discovering the command line and finding out, that you can actually do almost anything with it.Don't bash his learning process (pun intended).
Take a webcam picture:
streamer -f jpeg -o image.jpg
Do magic with that picture:
convert image.jpg -colorspace Gray image_gray.jpg
And do check out rest of the ImageMagick:
http://www.imagemagick.org/ [imagemagick.org]
Re:What is this? (Score:5, Informative)
And if you happen to be using OS X, also check out sips(1) [apple.com]. It does much of what ImageMagick + DCRaw does, but a lot faster.
Re: (Score:2)
The fact this comment is uttered by an eight-digit user does not make it any less true.
Re: (Score:2)
Re:What is this? (Score:5, Interesting)
And based on the students I teach in my "intro to linux" class, a good 30% are dependent on GUIs and aren't capable of becoming half way competent in using a command line only system over a 14 week term.
Typically, these are the same students that are in a networking track because "i'm good at helping grandma with facebook and I like to play world of warcraft" - not because they are curious about computers and networking
Re: (Score:3)
And based on the students I teach in my "intro to linux" class, a good 30% are dependent on GUIs and aren't capable of becoming half way competent in using a command line only system over a 14 week term.
Yeah, ok, that one's on you. You suck as a teacher, there's no other way to say it. I've seen heaps of kids go through and learn to use a command line in a beginning Linux class, with rare failures (mainly caused by absences). If you are really desperate and can't figure out how to get this right, the Redhat Academy has an ok curriculum that will have all your students writing shell scripts by the end of the semester.
Seriously, you've got to get out of the 'blame the student' mode because you're ruining a
Re: (Score:2)
You are missing the point of the OP. While not elegantly worded, the original request is valid....
What are your secret CLI commands? These are the things that go INSIDE those bash scripts that make bash useful....Or maybe a bash construct that makes life super easy.
A new F18 HTPC install that I just did has 1897 different commands in /usr/bin, and an F20 upgrade that has been in service for a number of years now has over 3300 "commands" in /usr/bin....While I like to think myself a BASH power user, I am gue
Re: (Score:2)
Okay, how about Monotheistic? Monomaniacal? Mononucleosistic? Never mind, you aren't one of the ones with a sense of humour, but have a chuckle anyways.
Re:Mod parent up (Score:5, Funny)
Mod parent up
I can't because /. doesn't have a command line interface for moderation.
Re: (Score:2)
You haven't worked with corporate VB programmers too much, have you?
Comment removed (Score:5, Interesting)
No true Scotsman programs in VBA (Score:2)
Anyone who must admit that they have more experience with VBA than anything else should not claim to be a programmer.
Even companies that make commercial off-the-shelf ERP software in Access+VBA, such as Stone Edge? Besides, "no true programmer" is considered [tvtropes.org] a fallacy [wikipedia.org].
Re: (Score:3)
" VBA was a bad idea that looked really good on paper. It gave a large number of people the ability to write quick and dirty tools for doing things in spite of the fact that these people had no business writing software in the first place. In the short term, these "programmers" filled a direct need, but in the long run, they have created a nightmare of sustainability that costs more to maintain / recreate than it ever saved in the first place. I have spent entirely too much time debugging and rewriting VBA
Re: (Score:3)
This story is like giving instructions on how to breathe.
To meditate, observe your breath without controlling it.
Do you think you know anything? You know nothing.
My head just exploded. (Score:5, Insightful)
Quoting the summary:
Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages.
Yes, my head just exploded. Please pardon the mess, aggressive renovations are in progress. I'm absolutely awestruck that this made it to the front page of /., and suddenly feel extremely old at 32.
In short, if you are experiencing a lack of flexibility with GUIs, which is a completely normal response in my book, please proceed to install your favorite Linux/BSD/Whatever-nixish distribution and learn to use the following:
I really, truly, honestly, brain-explodingly do not know what else to say here. Holy crap.
Re: (Score:2)
Replying to my own post here for clarification: the second entry in the unordered list (which /. decided to render in a less than graceful manner) should have had the term "scripting" appended to it. One-liners are great; knowing how to write useful self-contained programs yourself in various interpreters is far better.
This aside, I'm seriously beginning to suspect a bored troll managed to get the best of Soulskill on this one.
Re: (Score:2, Informative)
What I'm trying to understand, is how the submitter intends to use the CLI for a program without a shell of some kind. Unless he's talking about programs like Midnight Commander or Norton Commander (for people who really are getting old) by the term "command shells".
All that said, an interesting program is motion -- it lets you use a USB webcam as
Re: (Score:2, Insightful)
Re: (Score:2)
Mod parent up. The few times I dialed up on an acoustic coupler were at a buddy's house as a kid on his dad's machine. In my defense, I'll note that my house still had rotary phones on the walls. :)
Re: (Score:2)
You're probably just a troll, but what the hell, it's new year's even and I'm headed to bed in a couple of minutes anyhow. I'll waste a few calories pointing out that I've probably spent more of my life teaching people how to use everything from DOS, to every incarnation of Windows since 3.1, to most common Linux and BSD distributions (with emphasis on Debian, Mandrake back when that was a thing, and RHEL) than you've been alive. Have another drink, junior, and hope your dad doesn't notice the watered down
Re: (Score:2)
Past experiences are far from irrelevant here. When you grow up, you'll understand that. As for the rest, are you shitting me? I work with PowerShell every day dealing with a production fleet of systems running a mix of Server 2008/2012, along with a slew of RHEL based stuff. Go back to bed, kid.
Re:My head just exploded. (Score:5, Insightful)
I have a feeling that there's more shitty noob advice to come on this site from now on..Holy crap indeed
Re: (Score:2)
I really, truly, honestly, brain-explodingly do not know what else to say here. Holy crap
I think the polite thing to say would be "Welcome to the world of computing. How did you like your first day?"
Visual Basic for Applications??? (Score:4, Interesting)
Powershell has easily replaced most VBA script usage, there are still a few special cases where it has to be used.
Re: (Score:3)
VBA is almost VB6.
VBScript is not quite VBA. There are some VERY annoying inconsistencies, like this :
For ii = 0 To 10
' Do Stuff
Next ii ' This is legal in VBA / VB6 - but it's a syntax error in VBScript!
Situation normal (Score:2)
You won't be able to do it the same way tomorrow.
Re: (Score:3)
Re:Visual Basic for Applications??? (Score:4, Insightful)
Powershell was designed to market Windows server, providing something that looks familiar to Unix/Linux admins. It's by no means a replacement for VBScript. (Which is *not* the same thing as VBA.) VBScript, being COM-centric, is uniquely suited to accomplishing all sorts of tasks on Windows. It just happens to be getting "deprecated" as part of Microsoft's overall strategy: They want to attract people to Windows server while converting "civilian" Windows into virtually a kiosk OS.
Sorry, BS. PowerShell is a foundation technology in Windows, unlike VBScript. Since Windows 7, the troubleshooting packs are actually written in PowerShell [technet.com]! The troubleshooting utilities are automatically launched by the system when e.g. network problems occur.
PowerShell is every bit as COM capable as VBScript. PS uses a "unified" type system where multiple object models (COM, .NET, WMI etc) are surfaced as common PS objects.
VBScript is definitively legacy (and deprecated). I will actually wager a bet that there is not a single meaningful VBScript that could not be written shorter and more elegant with PowerShell.
Command shells "less useful"? (Score:2)
Is this some sort of joke?
A Unix-style shell is the most useful command line interface. It is itself its own scripting language.
There are various ones. The most popular is bash, but there are also fairly different ones like fish.
"Less useful but still useful are command shells"! (Score:5, Insightful)
I'm sorry, is this a joke? The Windows command line - even with powershell - might be a crippled joke, but the unix command line allows you to control *everything* going on in the OS itself and most features of whichever Desktop you're using. Plus the ability to pipe commands together creates a level of poweruser control that is far greater than the sum of its parts. Something Microsoft took 2 decades to realise and a paradigm that a lot of Windows admins still don't "get".
PowerShell (Score:5, Informative)
PowerShell deserves a mention too. Some people hate it, some people love it.
It is object oriented so the data transfer between processes is more robust. Also all the commands' manual pages come with extensive documentation and lots of great examples. UNIX man pages usually lack examples.
Re:PowerShell (Score:5, Informative)
It is object oriented so the data transfer between processes is more robust. Also all the commands' manual pages come with extensive documentation and lots of great examples. UNIX man pages usually lack examples.
Most bashers (no pun intended) miss several aspects of PowerShell simply because they view it as just another shell.
One such aspect is the fact that PowerShell is designed to operate directly with an application's core logic (the object model) whether that application was designed using COM or .NET. Virtually *all* of Window's features and even 3rd party applications for Windows are designed using one of those models. So the barrier to exposing the functionality to the CLI (PowerShell) is really, really low, and even older applications that predates PowerShell or that were never designed for PowerShell (like iTunes [powershell.com]) lend themselves to CLI manipulation. Forget about needing to craft a suite of external CLI tools - your app is inherently exposed to command line manipulation.
Another often overlooked aspect is how PowerShell is designed to run in-process within an application. The CLI is just *one* possible host for PowerShell. Alas, you can add the PowerShell engine to your app and immediately leverage existing commands to manipulate the in-process memory objects of your application. So not only is it *easy* to expose your application to automation, you can actually take advantage of the PowerShell engine to save work for your own in-application automation. With workflow engine integration in PowerShell 3.0 (it is now at 4.0) this is a great way to orchestrate workflows activities in an easy-to-manage way.
Great topic (Score:5, Informative)
mulk - much needed modernization of wget's functionality :color ir_black
qrencode - copy-paste from the desktop to a mobile device, or maintain an airgap
iotop - like htop for IO
history - built into bash, re-issue old commands as !number
pkill - kill programs indiscriminately
youtube-dl - keeps working even though google has almost killed youtube
netstat -lnp - see which program is bound to which port
vim - it won't make sense until you install plugins like spf-13, learn a few key combinations and set
tar -zxvf - you can remember it because the keys are right next to each other
pxz - parallel LZMA compressor
alasamixer - volume control
locate - find files, update the index with updatedb
Looking forwards to see more!
Re: (Score:2)
In the spirit of "command-line tools I use all the time":
sed - search and replace within files
git - redistributable file system that tracks changes, often used for version control of text files
ssh - secure command-line connection to another machine
scp - secure copy between machines
diff - compare differences between files
cp /dev/sr0 whatever.iso (Score:2)
cp /dev/sr0 whatever.iso
What the f**king f**k? (Score:5, Insightful)
"GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software.
Never mind it should be "are" not "is", under what circumstances would you ever be surprised that the features provided by Excel are not available in PhotoShop... with the exception of cut/copy/paste?
Did I miss a meeting where meretricious twaddle on this site became de rigour?
Maybe I should resign my ID...
Re:What the f**king f**k? (Score:5, Insightful)
Re: (Score:2)
Old fogey has alzheimer's, news at 11!
(A)REXX (Score:2)
The movie Titanic was rendered, in no small part, with Amigas running AREXX to control the per-frame rendering and result submission. Many Amiga applications included an AREXX interface port (I used the one in the terminal emulator for automated dialing).
PC-DOS 6 (The IBM release, that also included CDROM drivers, and came on CD), had an IBM port of mainframe REXX, as well.
Re: (Score:2)
REXX was the "blessed" scripting language of OS/2 as well, and had lots of hooks into the OS.
Don't start bashing the curious (Score:5, Insightful)
Obviously the submitter didn't grow up with a unix background, as lots of people here have. And now I see lots of people asking what the hell submitter is thinking, "is this a joke", "not worthy of a story" et cetera.
But think about it. Submitter came from a GUI background and now discovers the commandline. I'm thinking back when I started with Linux, feeling totally amazed about so much utilities, so much power and I kinda envy the submitter :)
So give it a rest and just chip in.
Re: (Score:2)
So far this submission has seen a really disappointing response from the Slashdot crowd. They look like braggarts who do not actually know anything about the subject matter.
Comment removed (Score:4, Informative)
Re: (Score:3, Interesting)
There is lots of information out there and, very much unlike 20 years ago, the tools to find this information are numerous, easy to use and freely available. It's nice that someone stumbled upon the power of the command line, but it doesn't need to make front page news. No, we're not going to deliver the information on a silver plate any more than it already is delivered on a silver plate if you bother to look. Granted, some will write about their favorite programs, but the scorn to offset these nuggets of
Re: (Score:2)
I am more than happy to deliver command line information on a silver plate to anyone that needs it.
Hear hear.
Don't let greyface get you down!
electrum (Score:2)
although it has a built-in python command prompt i.e. it's python it does have that as an actual tab, with the electrum python module pre-loaded. really handy.
There are three User interfaces and none are.... (Score:2)
... of any less value than the others.
From http://abstractionphysics.net/pmwiki/index.php [abstractionphysics.net]
Primary computer user interfaces:
Nature likes three (3) in primaries, as color in light (additive - red, blue, green) and paint (subtractive - blue, yellow, red) from which we can create all other colors in the rainbow. This applies to abstraction physics as well, as applied through the tool of computer, for there are three primary user interfaces. The command line, the Graphical User interface (GUI) and the side door p
Soulskill: please don't drink and post (Score:5, Insightful)
Setting aside the fact that this statement makes no sense, I suspect it was crafted around using the term "walled garden" in a misguided effort to establish nerd street cred. Mission failed.
Out of all of the CLI based software the submitter could have chosen, the selection demonstrates that they are neither a power user or a programmer.
Holy fuck. Seriously? What I am supposed to run my CLI based software in to begin with. Never mind everything else about a shell that runs deep.
The bullet points caught my eyes first, I knew right away it was going to be bad, but this? This article making the front page is an insult to the majority of Slashdot's user base and an affront to our intellect and skill sets. Also, it reads like it was written by a second-grader.
Programming analogy (Score:2)
GUIs are walled gardens in that features available in one piece of software is not available to other pieces of software.
If only Members of Congress were programmers, companies would be modular entities instead of the monolithic monsters they are now.
Documenters workbench and the AT&T toolkits (Score:2)
The AT&T Documenters Workbench has the best spell checker I have ever used. If you keep spelling "the" as "xqy", it learns and copes to the point where it can will offer "then" to xqyn". It knows that "rhw" might be "the" as well as "tje" is "the" as it knows keyboard layout. It was also the best spell checker for then/than lose/loose and it would adapt its dictionary based on reading level so it won't get tripped up on efficiency/efficacy
Someone needs to find out who (if anyone) owns the copyright a
bc and cal (Score:2)
Put this in your
alias bc='bc -i -l' Then just run bc for a interctive calculator:
(18*(567/23))+67
510.73913043478260869548
e.g.
and cal is brilliant.
All of them (Score:2)
Here's a start... (Score:3)
Setup a virtual machine, or a partition, install a BSD (I'm partial to NetBSD), and go to it. Skip the graphical interface packages on installation.
You want to learn about this, here's how most of us did it (flavor and variant will vary of course). Your motivation determines how much you will learn. Enjoy.
I heart C-64 Command line (Score:2)
LOAD “$”,8 - Now that was useful!
Rick Richardson's Linux tools for geocaching (Score:3)
From http://geo.rkkda.com/. All are bash and awk tools run via a terminal. Lots of them build upon gpsbabel (e.g. geo-nearest), or ImageMagick (e.g. reverse-montage) or, you get the drift.
Tools for accessing gc.com...
(SO) : this program works only for gc.com subscribers
geo-found List caches found (by you or someone else)
geo-nearest List the nearest caches to a location
geo-newest List the newest caches in a state
geo-placed List caches placed (by you or someone else)
geo-keyword List caches by keywords.
All of the above can enter the waypoints into the
GpsDrive MySQL database.
geo-html2gpx Convert a gc.com printable web page (such as the
above commands can produce with the -H option) to
a GPX file.
geo-count Count caches found
geo-usernum Determine gc.com user number (used by geo-count)
(SO) geo-gid Retrieve cache info by GCxxxx waypoint name
(SO) geo-gpx Retrieve GPX file by GCxxxx waypoint name
(SO) geo-demand Request an immediate pocket query email
(SO) geo-gpxmail Process PQ email using gpx2html
(SO) geo-gpxprocess Process PQ download(s) using geo-pqdownload and gpx2html
(SO) geo-pqdownload Perform a Pocket Query download(s)
(SO) geo-myfinds Schedule a Pocket Query containing your finds.
(SO) geo-rehides From your found.gpx file, produce a GPX file of rehides
(SO) geo-correct-coords Correct the coords of cache(s)
geo-density Compute cache density of an area
gpx2html Lightly hacked converter from GPX to HTML
Originally by fizzymagic (v1.90). My version
fixes issues with HTML in the cache descriptions, adds
sort by latest log date for easy perusing of recent
cache activity, and fixes bug in GC[1-9]xxxx.
gpx-loghistory Print all logs in reverse cron order.
geo-pqs Figure out what PQs to run to get an entire state.
geo-state Convenience script; geo-state -? gives usage.
geo-sdt Replace Size, Difficulty, Terrain from a PQ file
geo-suffix Replace name with name/TypeSizeDiffTerr/gcid/LatLon
geo-uniq Unique the tabsep database
Tools for accessing opencaching.com...
oc-nearest List the nearest caches to a location
oc-newest List the newest caches in a state
EXPERIMENTAL, subject to drastic changes
Tools for accessing opencaching.us (and
ok-nearest List the nearest caches to a location
ok-newest List the newest caches in a state
EXPERIMENTAL, subject to drastic changes
Tools for accessing navicache.com...
nc-nearest List the nearest caches to a location
nc-newest List the newest caches in a state
/rdb (Score:3)
command line spelling (Score:2)
great. I've been looking for a good command line spell check. All the graphics on the gui spell checkers are very distracting.
Son, Let Me Tell You a Little Story (Score:3)
Now I wouldn't even comment on this story, but I have recently been wondering why we haven't seen new developments in command line shells in the last couple of decades or so. The last big advance was tab completion in bash and then we just... stopped. Now I could see the argument that bash does everything we need it to, but I'm not sure I completely buy that. For one thing I'm constantly working around deficiencies in the shell. For another, we have seen OS advances we could be taking advantage of.
The UNIX shell model for the last three decades is, you run a program and the shell finds it in the path, forks a child process, execs the program and waits on the child process. When the child process exits, the shell resumes and has the return status of the child process available for examination. And that does actually have its place. But it doesn't need to be all there is anymore. With threads, there's no reason not to have the ability to initiate a program in parallel in the same memory space. Obviously there are some drawbacks to that -- if the program crashes, you'd lose your working shell. But it'd have some advantages, too -- the program could modify the shell's environment, share or persist objects in local memory, and customize the shell's behavior much more easily than we do today. We'd move from having files on disk to having resources we can take advantage of. Naturally you should still be able to revert to the old fork/exec model for some applications.
I'll probably write some code to explore this when I get my current couple of projects squared away.
posting age (Score:2)
are you fucking dense (Score:2)
>Less useful but still useful are command shells. These provide file management mostly. I believe some of them may allow for sending and retrieving email messages.
Thats not true, not on any modern operating system. It was only true on windows, before the introduction of PowerShell.
2014 resolution: mellow out (Score:5, Insightful)
The elitists are out in full force today. Ya the submission is nothing new to many of us but instead of ripping submitter a new one why not share your knowledge with him. Back in 97 I bought Oreilly's Linux in a Nutshell reference book. That book is still on my desk today, beaten up an tattered but sill useful.
Happy New Year fellow neckbeards! ;-)
Invaluable utility program (Score:4, Funny)
More CLI-Fu (Score:5, Informative)
Less useful but still useful are command shells. These provide file management mostly.
Ohhh, baby. If you think ImageMagick is cool by itself (and it is), just wait 'til you start to grok how powerful those "less useful" command shells are for gluing those complex tools together. It will blow your hair back.
Say you have a directory tree with a few hundred images scattered through it, and you want to create thumbnails for all of the images in a parallel directory structure; ImageMagick will do the thumbnail part, CLI-Fu will handle the directory traversal and turn a three hour job in to a three minute one.
Learn these for starters:
sed - text parser and transformer, for mutating file names and munging commands
awk - ultra-terse programming language, great for building more complex commands than you would with sed
find - traverse a directory tree and list files with conditional matching
xargs - process a large list of things (like files found with find) in batches
grep - filter out elements of a list based on string pattern matching
egrep - enhanced grep, includes more advanced patterns and wildcards
sort - sort lists numerically or alphabetically
wc - count the elements of a list, words in a line, or other things
wget - download a URL
curl - read a URL to stdout
Seriously, when you start piping those things together with the more complex command line tools like ImageMagick and FFMpeg, you will be astonished at the mass data processing you can do with a few dozen characters on the command line.
Re: (Score:3)
The shell includes for, if, else, while and variables that allow you to write simple to complex scripts to manage all the self contained unix commands listed by Bob9113.
Here's 3 more useful unix commands to add to Bob9113's list
apropos COMMAND_or_COMMAND_FRAGMENT - to find the command you might want
which COMMAND - to find the location of the command on the filesystem
man COMMAND - to find the manual page for the command
There is an entire book dedicated to just awk and sed, which are quite useful programs on
Re: (Score:2)
Dude, Netcraft confirms it, and I'm certain of it now myself. Soulskill ain't sober at the moment. I can't fault him for that, but ... just damn dude on posting this submission.
Re: (Score:2)
You've obviously grossly missed the entire point surrounding the severe wtfness of this story being posted on this site in the first place. Holy shit man, it's the 90s now, get with the program.
Re: (Score:2)
Are you going to tell these old fossils about bookmarklets too? =)
Re: (Score:3)
Funny. I had a nightmare recently about being suckered into a contract to do some VMS work.
DCL always gave me the willies.
Re: (Score:2)
Nah let's forget it and go into space.
Re: (Score:2)
Re: (Score:2)
I've probably been here longer than quite a lot of people.
It's exactly that kind of attitude that puts me off. Especially when, when something does seem newsworthy for here, seemingly the most contrived, error-ridden, broken-linked summary of the situation that assumes everyone knows what every acronym means and exactly what we're talking about (without explanation) is the one that makes it to the front page IF ANY AT ALL.
Sorry, but Slashdot is a shadow of its former self, and I used to browse it happily i
Re: (Score:3)
Re: (Score:2)
I didn't know that and I have needed that command for 15 years. Thanks, you made this topic worth my time!