LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   which command (https://www.linuxquestions.org/questions/linux-newbie-8/which-command-480286/)

win2suse 09-04-2006 09:48 AM

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

Brian1 09-04-2006 09:53 AM

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

boToo 09-04-2006 10:01 AM

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.

jstephens84 09-04-2006 10:25 AM

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.

unSpawn 09-04-2006 10:59 AM

Also with "screen" you can select, copy and paste lines or parts of lines.

thunder_balls 09-04-2006 03:28 PM

I think shift+insert is also used to copy. I might be wrong..

Tinkster 09-04-2006 03:42 PM

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


All times are GMT -5. The time now is 06:25 AM.