Category Archives: Operation Systems

UNIX commands and tasks for Linux and BSD

Advanced Bash-Scripting Guide – External Filters, Programs and Commands

Basic

  • ls
  • cat
  • tac
  • rev
  • cp
  • mv
  • rm
  • rmdir
  • mkdir
  • chmod
  • chattr
  • ln
  • man
  • info

Complex

  • find
  • xargs
  • expr

Time and Date

  • date
  • zdump
  • time
  • touch
  • at
  • batch
  • cal
  • sleep
  • usleep
  • hwclock
  • clock

Text Processing

  • sort
  • tsort
  • uniq
  • expand
  • unexpand
  • cut
  • paste
  • join
  • head
  • tail
  • grep
  • look
  • sed
  • awk
  • wc
  • tr
  • fold
  • fmt
  • col
  • column
  • colrm
  • nl
  • pr
  • gettext
  • msgfmt
  • iconv
  • recode
  • TeX
  • gs
  • enscript
  • groff
  • tbl
  • eqn
  • lex
  • yacc

UNIX Toolbox: Differences between Linux/BSD/Windows

FreeBSD: Zeige alle Festplatten

[root@data /home/bachi]# atacontrol list
ATA channel 0:
    Master:      no device present
    Slave:       no device present
ATA channel 1:
    Master:      no device present
    Slave:       no device present
ATA channel 2:
    Master:  ad4 <Maxtor 33073H3/YAH814Y0> ATA/ATAPI revision 6
    Slave:       no device present
ATA channel 3:
    Master:  ad6 <Maxtor 6L300R0/BAJ41G20> ATA/ATAPI revision 7
    Slave:   ad7 <Maxtor 6L300R0/BAJ41G20> ATA/ATAPI revision 7
[root@data /home/bachi]# egrep 'ad[0-9]|cd[0-9]' /var/run/dmesg.boot
ad4: 29312MB <Maxtor 33073H3 YAH814Y0> at ata2-master UDMA100
ad6: 286188MB <Maxtor 6L300R0 BAJ41G20> at ata3-master UDMA100
ad7: 286188MB <Maxtor 6L300R0 BAJ41G20> at ata3-slave UDMA100
Trying to mount root from ufs:/dev/ad4s1a