LinuxQuestions.org
Visit Jeremy's Blog.
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, 03: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, 04: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, 06: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, 08: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, 09:36 AM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 08:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration