Sponsored Content
Top Forums UNIX for Beginners Questions & Answers What is the best way to remember UNIX / Linux Commands? Post 303013021 by drl on Tuesday 13th of February 2018 10:03:01 PM
Old 02-13-2018
Hi.

Generalizing the idea of learning:

1) Yes, one good way is experience, especially learning from mistakes.

2) Retrieval is another method, one of the best, noted in several books (that I am reading) on learning, for example:
Quote:
Originally Posted by Learn Better: Mastering the Skills for Success in Life, Business, and School, or, How to Become an Expert in Just About Anything
Ulrich Boser

Some forms of practice make people more perfect than others, though, and people should be sure to practice retrieving their knowledge. In one well-known study, a group of subjects who practiced recalling a passage learned a lot more than people who simply reread the passage. More concretely, you'd learn a lot more if you ask yourself questions after reading this text than simply rereading it.
Flash or index cards, your own quizzes, etc. are some ways to implement this.

Good luck ... cheers, drl

Last edited by drl; 02-14-2018 at 11:03 AM.. Reason: Minor formatting change.
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unix commands in linux-red hat

hi, can i have a unix like environment where i can do things like chmod, shell scripts and etc.. in redhat instead of the GUI that redhat ofters? (4 Replies)
Discussion started by: yls177
4 Replies

2. Shell Programming and Scripting

AWK--does anyone remember it

I am trying to run awk on a 55 page Word document. I wanted to delete every occurrence of <company>, <script>, </scripts> from the file then cut & paste all of the appropriate fields to an Excel spreadsheet. Also the code is suppose to replace the dates in a new format such as "xxxx-xx-xx" ... (2 Replies)
Discussion started by: cnitadesigner
2 Replies

3. News, Links, Events and Announcements

All Linux and Unix commands Links

http://www.computerhope.com/unix.htm http://www.linuxdevcenter.com/linux/cmd/ (0 Replies)
Discussion started by: devotedsinner
0 Replies

4. UNIX for Dummies Questions & Answers

Name 10 commands every Linux and Unix admin should know

I'm working on further developing my Unix skills and I'm just curious what some of the experienced admins out there would consider to be 10 essential commands every admin should know. (12 Replies)
Discussion started by: Arkitech
12 Replies

5. What is on Your Mind?

Most deadly commands on Unix/Linux !!

lets list the most deadly commands on Unix/Linux and what they do.... > sudo rm -rf / (27 Replies)
Discussion started by: Rahulpict
27 Replies

6. UNIX for Dummies Questions & Answers

Unix and Linux Commands

Hi All I have found that few basic commands in unix have the same syntax in linux as well. I need those commands which differ on Linux platform, with some more advanced options.. For example... awk, sed, tr ... and some more commands with advanced options. I am trying to search on the linux... (1 Reply)
Discussion started by: vee_789
1 Replies

7. What is on Your Mind?

Anyone remember this cute unix ad?

It showed a cleaning woman (probably in the evening, after most of the other employees had left work) happily typing commands on a dot matrix terminal (could've been a DEC LA120, IIRC) just because "unix is so easy to use, even a cleaning woman can use it!". If you know where to find a scanned... (2 Replies)
Discussion started by: mathiasbage
2 Replies
DBIx::Class::Helper::ResultSet::CorrelateRelationship(3pUser Contributed Perl DocumentatDBIx::Class::Helper::ResultSet::CorrelateRelationship(3pm)

NAME
DBIx::Class::Helper::ResultSet::CorrelateRelationship - Easily correlate your ResultSets VERSION
version 2.013002 SYNOPSIS
package MyApp::Schema::ResultSet::Author; use base 'DBIx::Class::ResultSet'; __PACKAGE__->load_components(qw(Helper::ResultSet::CorrelateRelationship)); sub with_book_count { my $self = shift; $self->search(undef, { '+columns' => { book_count => $self->correlate('book')->count_rs->as_query } }); } 1; And then elsewhere, like in a controller: my $rows = $schema->resultset('Author')->with_book_count->all; DESCRIPTION
Correlated queries are one of the coolest things I've learned about for SQL since my initial learning of SQL. Unfortunately they are somewhat confusing. DBIx::Class has supported doing them for a long time, but generally people don't think of them because they are so rare. I won't go through all the details of how they work and cool things you can do with them, but here are a couple high level things you can use them for to save you time or effort. If you want to select a list of authors and counts of books for each author, you could use "group_by" and something like "COUNT(book.id)", but then you'd need to make your select list match your "group_by" and it would just be a hassle forever after that. The "SYNOPSIS" is a perfect example of how to implement this. If you want to select a list of authors and two separate kinds of counts of books for each author, as far as I know, you must use a correlated subquery in DBIx::Class. Here is an example of how you might do that: package MyApp::Schema::ResultSet::Author; use base 'DBIx::Class::ResultSet'; __PACKAGE__->load_components(qw(Helper::ResultSet::CorrelateRelationship)); sub with_good_book_count { my $self = shift; $self->search(undef, { '+columns' => { good_book_count => $self->correlate('books')->good->count_rs->as_query } }); } sub with_bad_book_count { my $self = shift; $self->search(undef, { '+columns' => { bad_book_count => $self->correlate('books')->bad->count_rs->as_query } }); } 1; And then elsewhere, like in a controller: my $rows = $schema->resultset('Author') ->with_bad_book_count ->with_good_book_count ->all; This assumes that the Book resultset has "good" and "bad" methods. See "NOTE" in DBIx::Class::Helper::ResultSet for a nice way to apply it to your entire schema. METHODS
correlate $rs->correlate($relationship_name) Correlate takes a single argument, a relationship for the invocant, and returns a resultset that can be used in the selector list. AUTHOR
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Arthur Axel "fREW" Schmidt. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-18 DBIx::Class::Helper::ResultSet::CorrelateRelationship(3pm)
All times are GMT -4. The time now is 12:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy