Basic problem-solving, maintenance & terminal command stuff - Was: gedit output re Entry 60 error, software updater failure, &c.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Basic problem-solving, maintenance & terminal command stuff - Was: gedit output re Entry 60 error, software updater failure, &c.

Ralf Mardorf-2
On Sat, 04 Aug 2018 23:20:54 +0000, djlafond via ubuntu-users wrote:
> One last question: is there a book you can recommend that would be a
> good primer on this sort of basic problem-solving, maintenance &
> terminal command stuff?

In a Terminal run

  man bash

this isn't a joke, but also not my recommendation for a newbie, but you
should be aware, that all UNIX alike operating systems provide manuals.

It's not to my taste, but perhaps it fits to your approach of learning:
https://www.tldp.org/LDP/Bash-Beginners-Guide/html/

For learning more about Linux my recommendation is using Google (not
another search engine), each time you face an issue you need to solve.
For a newbie the evil of Google has got a few advantages. After a
learning curve you know more Linux related terms and what keywords to
use, as well as how a search engine works, then you could migrate to
another search engine.

Trial and error:

For a beginner it's not easy to understand the "SYNOPSIS" on top of a
command's manual page. For example

http://manpages.ubuntu.com/manpages/xenial/man8/apt.8.html

But once you get used to it, it's easy to understand. OTOH there are
still pitfalls.

Before I continue, this isn't a lesson, I only want to provide two
examples why learning at the beginning could be tricky. You not only
need to learn a few important commands, but also the way the shell as a
whole works.

If you want to know what packages are available containing a name of a
program you could use

    apt list

It also shows you, if a package is installed.

For example

   [weremouse@moonstudio usr]$ apt list *claws*
   Listing... Done
   claws-mail/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-acpi-notifier/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-address-keeper/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-archiver-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-attach-remover/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-attach-warner/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-bogofilter/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-bsfilter-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-clamd-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-dbg/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-doc/xenial,xenial 3.13.2-1ubuntu1 all
   claws-mail-extra-plugins/xenial,xenial 3.13.2-1ubuntu1 all
   claws-mail-fancy-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-feeds-reader/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-fetchinfo-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-gdata-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-git/now 3.16.0-213-g1af132-1 amd64 [installed,local]
   claws-mail-i18n/xenial,xenial 3.13.2-1ubuntu1 all
   [snip]

but if you have bad luck something strange could happen

   [weremouse@moonstudio usr]$ cd src/
   [weremouse@moonstudio src]$ apt list *claws*
   Listing... Done
   [weremouse@moonstudio src]$

The reason that nothing is listed is, that several files in this
directory contain the word "claws".

   [weremouse@moonstudio src]$ ls *claws*
   claws.configure [snip]                                  
   claws-mail-git_3.14.0-2-ge48b73-1_amd64.deb [snip]

It's easy to get rid of this issue, by just two '-Signs.

   [weremouse@moonstudio src]$ apt list '*claws*'
   Listing... Done
   claws-mail/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-acpi-notifier/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-address-keeper/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-archiver-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-attach-remover/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-attach-warner/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-bogofilter/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-bsfilter-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-clamd-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-dbg/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-doc/xenial,xenial 3.13.2-1ubuntu1 all
   claws-mail-extra-plugins/xenial,xenial 3.13.2-1ubuntu1 all
   claws-mail-fancy-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-feeds-reader/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-fetchinfo-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-gdata-plugin/xenial 3.13.2-1ubuntu1 amd64
   claws-mail-git/now 3.16.0-213-g1af132-1 amd64 [installed,local]
   claws-mail-i18n/xenial,xenial 3.13.2-1ubuntu1 all
   [snip]



"Globbing" without doubts is the most confusing thing for a newbie.



   [weremouse@moonstudio test]$ ls -Al . directory/ another_directory/ ../test_2/
   .:
   total 0
   drwxrwxr-x 2 weremouse weremouse 40 Aug  5 02:53 another_directory
   drwxrwxr-x 2 weremouse weremouse 80 Aug  5 02:51 directory
   -rw-rw-r-- 1 weremouse weremouse  0 Aug  5 02:50 file
   -rw-rw-r-- 1 weremouse weremouse  0 Aug  5 02:50 .hidden_file

   another_directory/:
   total 0

   directory/:
   total 0
   -rw-rw-r-- 1 weremouse weremouse 0 Aug  5 02:51 file_in_dir
   -rw-rw-r-- 1 weremouse weremouse 0 Aug  5 02:51 .hidden_file_in_dir

   ../test_2/:
   total 0
   [weremouse@moonstudio test]$ cp -a * ../test_2/



The above copy command doesn't copy all files. The ".hidden_file" is
missing, but the ".hidden_file_in_dir" was copied.



   [weremouse@moonstudio test]$ ls -Al ../test_2/ ../test_2/*
   -rw-rw-r-- 1 weremouse weremouse   0 Aug  5 02:50 ../test_2/file

   ../test_2/:
   total 0
   drwxrwxr-x 2 weremouse weremouse 40 Aug  5 02:53 another_directory
   drwxrwxr-x 2 weremouse weremouse 80 Aug  5 02:51 directory
   -rw-rw-r-- 1 weremouse weremouse  0 Aug  5 02:50 file

   ../test_2/another_directory:
   total 0

   ../test_2/directory:
   total 0
   -rw-rw-r-- 1 weremouse weremouse 0 Aug  5 02:51 file_in_dir
   -rw-rw-r-- 1 weremouse weremouse 0 Aug  5 02:51 .hidden_file_in_dir

--
On Fri, 3 Aug 2018 22:05:00 +0100, Colin Law wrote:
> And please change the subject line of your email, your question is not
> about the digest.

For the Evolution mailing list MIME became the default for the digest,
but even this didn't solve the issue. On Tuesday the digest issue is
over.

https://mail.gnome.org/archives/evolution-list/2018-August/msg00017.html



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Basic problem-solving, maintenance & terminal command stuff - Was: gedit output re Entry 60 error, software updater failure, &c.

Chris-2
On Sun, 2018-08-05 at 03:21 +0200, Ralf Mardorf wrote:

> On Sat, 04 Aug 2018 23:20:54 +0000, djlafond via ubuntu-users wrote:
> >
> > One last question: is there a book you can recommend that would be
> > a
> > good primer on this sort of basic problem-solving, maintenance &
> > terminal command stuff?
> In a Terminal run
>
>   man bash
>
> this isn't a joke, but also not my recommendation for a newbie, but
> you
> should be aware, that all UNIX alike operating systems provide
> manuals.
>
> It's not to my taste, but perhaps it fits to your approach of
> learning:
> https://www.tldp.org/LDP/Bash-Beginners-Guide/html/
>
Way back in the early 2000's I began running Linux with Mandrake. I
found this book http://tinyurl.com/y76vxdoq (Linux Complete) to be very
helpful. Of course the versions that may be mentioned are antiquated.

--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
20:46:51 up 11 days, 3:52, 1 user, load average: 0.86, 0.57, 0.56
Description: Ubuntu 16.04.5 LTS, kernel 4.15.0-29-generic

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment