Jump to content


- - - - -

Command line shortcuts


  • You cannot reply to this topic
No replies to this topic

#1 Dude111

    An Awesome Dude

  • Members
  • PipPipPipPipPipPip
  • 315 posts

Posted 19 January 2009 - 07:59 PM

ctrl u erases the current line
ctrl w erases the last word you typed
ctrl c kills a running process you just started from the command line (usually)
history  displays the last  of commands typed
EX:
history 15 displays the last 15 commands ,with a number
take that number and type ! to rerun the command

sample:
user:$ history 5
  500  su
  501  bnxd hjxrfyj
  502  history 15
  503  df
  504  history 5
localhost:/~
user:$ !503
df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             19919988  19293256    626732  97% /
/dev/hda1            133191012  97840548  28584692  78% /home
/dev/sda1            219718816 179836836  28720824  87% /home/user/mnt/sdb
tmpfs                  1035476         0   1035476   0% /dev/shm
/dev/sdb1              1981024   1981024         0 100% /media/disk-1
localhost:/~
user:$    






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users