LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-04-2015, 12:56 PM   #1
fng77
LQ Newbie
 
Registered: Oct 2015
Posts: 14

Rep: Reputation: Disabled
Guys! I need help with some comands! Probobly simple for you :)


I need to list some files:

With ordinary commands and combine them with pipes, so that you get following result:

List all files, bigger than 1MB in a catalog (dont know witch to choose, something with not to many files). Dont list subfolders, and sort everything in a list.


Help please!
 
Old 10-04-2015, 01:05 PM   #2
shivee
Member
 
Registered: Nov 2013
Posts: 30

Rep: Reputation: Disabled
hi!
http://unix.stackexchange.com/questi...ze-recursively
http://www.howtogeek.com/168135/list...size-on-linux/

I think the above links would be helpful.Edit your title stating your actual problem so that you could receive proper response!

Last edited by shivee; 10-04-2015 at 01:09 PM.
 
Old 10-04-2015, 01:18 PM   #3
fng77
LQ Newbie
 
Registered: Oct 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shivee View Post
hi!
http://unix.stackexchange.com/questi...ze-recursively
http://www.howtogeek.com/168135/list...size-on-linux/

I think the above links would be helpful.Edit your title stating your actual problem so that you could receive proper response!
I got it done!

With: find . -maxdepth 1 -type f -size +100M


Thanks!





Now i must count the uniqe lines in a file named address.txt containing:

kalle
kalle
adam
olla
kalle


The command should output 3 of course. Any command you can recommend?

 
Old 10-05-2015, 05:14 AM   #4
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Is this homework? You should not be asking for answers to homework questions especially if you don't even tell us what you have tried yet. You may wantr to review the rules about homework again.

Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.
Here is a link to more info for you: http://www.linuxcommand.org/
 
Old 10-05-2015, 05:22 AM   #5
fng77
LQ Newbie
 
Registered: Oct 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Sorry!

I solved it myself got totaly stuck. Was only looking to learn, not for you to do it for me.

Last edited by fng77; 10-05-2015 at 05:24 AM.
 
Old 10-05-2015, 07:06 AM   #6
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by jkirchner View Post
Is this homework?
Not only is this homework. I am 95% certain I know which course and University it is!

Mind you, I don't mind answering homework questions, as long as people at least have the decency to be upfront about it.

<rant>I know, I know, starting to sound like a bitter old fart, but... this ”give me, give me, give me” attitude is driving me nuts.
And, for the record, without the GNU/Linux community I would have gotten nowhere. But for all that is holy, unless you TRY, and try really HARD, you're never going to learn anything.</rant>


HMW
 
Old 10-05-2015, 08:37 AM   #7
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Dear op, could you be so kind as to share what you did. I don't know about others but majority of my technical posts, I tryto leave behind what I did to solve the issue. Many others do the same. This is important since we do not appreciate answering the same questions over and over. It also benefits others searching. In turn they will find an answer and in turn members can answer other technical issues.

Last edited by ericson007; 10-05-2015 at 08:38 AM.
 
Old 10-05-2015, 09:37 AM   #8
fng77
LQ Newbie
 
Registered: Oct 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by HMW View Post
Not only is this homework. I am 95% certain I know which course and University it is!

Mind you, I don't mind answering homework questions, as long as people at least have the decency to be upfront about it.

<rant>I know, I know, starting to sound like a bitter old fart, but... this ”give me, give me, give me” attitude is driving me nuts.
And, for the record, without the GNU/Linux community I would have gotten nowhere. But for all that is holy, unless you TRY, and try really HARD, you're never going to learn anything.</rant>


HMW

I dont understand why it matters if its homework, work or private? Its a problem I got to solve and I asked for help in a forum. Thanks any way.
 
Old 10-05-2015, 09:46 AM   #9
fng77
LQ Newbie
 
Registered: Oct 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ericson007 View Post
Dear op, could you be so kind as to share what you did. I don't know about others but majority of my technical posts, I tryto leave behind what I did to solve the issue. Many others do the same. This is important since we do not appreciate answering the same questions over and over. It also benefits others searching. In turn they will find an answer and in turn members can answer other technical issues.
Hi!

Now im not sure if I dare to answer. Im pretty new in this game and did know it was "forbidden" to ask certian questions. I give you a hint. I used the command sort and uniq.

Good luck!

If I have done anything wrong or broken some rule or something, I ask a mod to close this thread. Thanks!
 
Old 10-05-2015, 09:47 AM   #10
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
Quote:
Originally Posted by fng77 View Post
I dont understand why it matters if its homework, work or private? Its a problem I got to solve and I asked for help in a forum. Thanks any way.
What have you learned if someone does the work for you? Seriously, look at the word: HOMEWORK it's work YOU are supposed to do.

What is a degree or certification worth if it's not earned? Nothing...

Last edited by NGIB; 10-05-2015 at 09:48 AM.
 
Old 10-05-2015, 10:05 AM   #11
fng77
LQ Newbie
 
Registered: Oct 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by NGIB View Post
What have you learned if someone does the work for you? Seriously, look at the word: HOMEWORK it's work YOU are supposed to do.

What is a degree or certification worth if it's not earned? Nothing...

I dont want anybody to do it FOR me. Im so new to linux, so I didnt know where to start Sometimes you need to ask somebody to get started.

I always ask people about advice when I cant figure it out myself. I see your point too, but that wasnt my goal at all. I always do everything myself, probably more than others do. But sometimes I get stuck and need help.

Sorry if I have offended someone here. Is it ok to ask qustions about work? or are you risking to be labeled as incompetent or something then? Not fit for the job?

I rest my case, this was not a good idea. I have learned something new

Thank god I didnt ask the teacher! He probobly would have expeld me for asking such stupid questions.
 
Old 10-05-2015, 10:22 AM   #12
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by fng77 View Post
But sometimes I get stuck and need help.
We ALL do.

I don't know if you misunderstood me (and others) here on purpose. Like I wrote earlier, I have absolutely nothing against helping out with homework, provided that the OP (you in this case) shows that [sh]e has tried to solve the issue first.

There was no attempt from you in your first posts. You did however show that you managed to solve the problems on your own. Awesome!

In the future, perhaps if you provided something like:
Quote:
I have homework and have to solve issue X.
My attempts this far looks like Y.
But... I get result A instead of B.
My thinking is that the problem lies in section C.
You wouldn't get such a, ehm, lukewarm reception. I don't know you, there is absolutely zero animosity from me towards you as a person. I wish you the best of luck in your future endeavours in GNU/Linux, and I sincerely believe that if you take my advice above, things will be smoother for you. But that is, of course, entirely up to you.

http://catb.org/~esr/faqs/smart-questions.html

Best regards,
HMW
 
Old 10-05-2015, 10:47 AM   #13
fng77
LQ Newbie
 
Registered: Oct 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
He, he, sorry guys!

I see what you mean

The thing is, that I have been so bloody ill for about 3 months. I never have been like this before. Yesterday I got panic, when realizing that nothing had been done! My brain have lost its ability to think logical!!

Its comming back slowly...

Thanks for your reply! I agree totaly. Could have asked in a differnt way

See you around!
 
Old 10-05-2015, 10:50 AM   #14
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by fng77 View Post

Thanks for your reply! I agree totaly. Could have asked in a differnt way

See you around!
Thanks for YOUR reply. Looking forward to seeing more of you around.

Best regards,
HMW
 
  


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
Quick, simple questions (for you guys, I'll get there): is PCLINUX easier to install finestrudctureconstant Linux - Newbie 4 09-25-2015 10:58 AM
Here is a simple question for you guys patpawlowski Linux - Newbie 2 02-04-2004 01:50 PM
doing simple comands during startup e1000 Slackware 1 11-11-2003 05:29 PM
Probobly heard this one.. rpmadness Linux - Software 2 10-21-2003 06:50 AM
hey, guys simple question notslim Linux - Newbie 3 08-05-2003 08:35 PM

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

All times are GMT -5. The time now is 02:48 PM.

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