LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-15-2005, 02:55 AM   #1
Thorium
Member
 
Registered: Dec 2004
Location: USA
Distribution: Debian
Posts: 124

Rep: Reputation: 15
2 noob questions


These are 2 probably simple questions but I've searched on here and googled around and I'm still lost.

First, I was wondering if there is a way to view stuff in the terminal that is off the screen if you aren't in a window manager. For example, if I did an apt-cache search blah, and I get 400 results and I want to go back and see all of them.

Another simple problem I've run across is wanting to copy the contents of a folder into another folder but not the first folder itself. So if I wanted to put the contents of lets say folderA into folderB, if I do (assuming they are in the same directory):

cp -r folderA folderB

this moves folderA with its contents into folderB, but I just want the contents of folderA to go directly into B. Easy to work around but just wondering if there is a way to make life a bit easier. Thanks in advance, and sorry for these silly questions
 
Old 07-15-2005, 03:09 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
If you know the output of a command is going to be over 1 screen's length, you can pipe it through less. So your command would be apt-cache search blah | less

The copy I think you are looking for would be
copy ./folderA/* ./folderb but maybe I'm reading the question wrong.
 
Old 07-15-2005, 05:30 AM   #3
Thorium
Member
 
Registered: Dec 2004
Location: USA
Distribution: Debian
Posts: 124

Original Poster
Rep: Reputation: 15
Sorry for the confusing question, the ./folder/* does the trick with cp. Thanks
 
Old 07-15-2005, 07:54 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
oops, I actually typed copy as the command. Stupid DOS commands, I can't get them out of my head.
 
Old 07-15-2005, 08:36 AM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
If you press either ctrl, alt or shift with the page-up key it will scroll up the screen, I can never remember which - I normally end up trying all three combinations before I get it
 
  


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
Noob Questions dark_negotiator Mandriva 16 10-20-2005 07:30 PM
a few noob questions MaTrIx709 Debian 9 07-16-2005 10:52 AM
Questions from a noob Linux_n00b_57 Linux - Games 5 07-08-2005 04:11 PM
Several noob questions Easyrider Mandriva 1 02-15-2005 12:06 AM
some noob questions WARHEAD Slackware 7 02-29-2004 01:10 PM

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

All times are GMT -5. The time now is 06:58 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