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 09-04-2006, 10:48 AM   #1
win2suse
Member
 
Registered: Jul 2006
Posts: 84

Rep: Reputation: 15
Question which command


Hallo all,
I'm looking for
1. a command which could show me how much is occupied on my hard disk and how much is still available?
2. shortcut keys for copying lines on the bash console.

BTW, my distro is Bebian 2.6.8-3-386. Thanks in advance, win2s
 
Old 09-04-2006, 10:53 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
1. Use the command ' du -h ' to show usage of the partition.

edit:
My mistake I meant ' df -h '. du is good for seing things like which directory is using the most space. Like seeing who went over there storage limit if no quotas are enabled.
edit:

2. Not sure off the top of my head. Depends on which terminal program you are using.

Brian1

Last edited by Brian1; 09-04-2006 at 11:58 AM.
 
Old 09-04-2006, 11:01 AM   #3
boToo
Member
 
Registered: Aug 2003
Distribution: Kubuntu
Posts: 49

Rep: Reputation: 15
Quote:
Originally Posted by win2suse
Hallo all,
I'm looking for
1. a command which could show me how much is occupied on my hard disk and how much is still available?
2. shortcut keys for copying lines on the bash console.

BTW, my distro is Bebian 2.6.8-3-386. Thanks in advance, win2s
for question 1,
$df -h

for question 2,
highlight the line you want to copy, then move your cursor to whrere you want to paste , then middle click or left click to paste it.
 
Old 09-04-2006, 11:25 AM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
As said df -h will print out what percentage your partitions are full. du is good for getting the actual space being used by each directory. du is a little more indepth. I would do a man du for more information. du will give you all the information you need. As far as coping on the command line I think you are looking for yy will copy(or yank) and p will copy the buffer.
 
Old 09-04-2006, 11:59 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Also with "screen" you can select, copy and paste lines or parts of lines.
 
Old 09-04-2006, 04:28 PM   #6
thunder_balls
LQ Newbie
 
Registered: Sep 2006
Distribution: Slackware-current
Posts: 4

Rep: Reputation: 0
I think shift+insert is also used to copy. I might be wrong..
 
Old 09-04-2006, 04:42 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by jstephens84
As far as coping on the command line I think you are looking for yy will copy(or yank) and p will copy the buffer.
Bashs default is to act like emacs. To achieve what you mention
here the shell option
set -o vi
needs to be set.



Cheers,
Tink
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Why after start of a command the invitation for input next command has not appeared. ukrainet Linux - General 3 06-24-2005 09:16 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM


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