Jump to content

Guide to Unix/Commands

From Wikibooks, open books for an open world

The Unix command line is often considered difficult to learn. This book aims to help beginners by introducing various commands in lucid and simple language. Unlike most command references, this book is designed to be a self-study guide.

Contents

[edit | edit source]
Section Contents
Summary
Getting Help

man 75% developed  as of October 7, 2005 info 50% developed  as of October 7, 2005 apropos 75% developed  as of October 7, 2005 whatis 50% developed  as of October 7, 2005 makewhatis 25% developed  as of October 7, 2005

File System Utilities

ls 25% developed  as of October 7, 2005 mkdir 50% developed  as of October 7, 2005 cd 50% developed  as of October 7, 2005 pwd 75% developed  as of October 7, 2005 chroot 50% developed  as of October 7, 2005 cp 25% developed  as of October 7, 2005 mv 25% developed  as of October 7, 2005 rm 25% developed  as of October 7, 2005 touch 50% developed  as of October 7, 2005 df 75% developed  as of October 7, 2005 link 25% developed  as of October 7, 2005 ln 25% developed  as of October 7, 2005 unlink 25% developed  as of October 7, 2005 chown chmod mount

Finding Files

find 50% developed  as of October 7, 2005 whereis 75% developed  as of October 7, 2005 which 75% developed  as of October 7, 2005 locate 50% developed  as of October 7, 2005 xargs

File Viewing

cat 50% developed  as of October 7, 2005 more 25% developed  as of October 7, 2005 less 25% developed  as of October 7, 2005 od 50% developed  as of October 7, 2005 head 50% developed  as of October 7, 2005 tail 75% developed  as of October 7, 2005

File Editing

pico 0% developed  as of July 13, 2006 nano 0% developed  as of July 13, 2006 zile 0% developed  as of July 13, 2006 vi 0% developed  as of July 13, 2006 joe 0% developed  as of July 13, 2006 emacs 0% developed  as of July 13, 2006

Text Processing

awkcommcsplitcutexpandfmtfoldiconvjoinnlpasteprsedsortspelltrunexpanduniq

File Compression

gzipgunzipzcatgzcattarpaxbzip2zipunzipcompressuncompressunar

File Analysing

file 25% developed  as of October 7, 2005 wc 75% developed  as of October 7, 2005 cksumsumstatgrepdiffdiff3cmpstrings

Multiuser Commands

who 75% developed  as of October 7, 2005 finger 75% developed  as of October 7, 2005 su 75% developed  as of October 7, 2005

Self Information

whoami 100% developed  as of October 7, 2005 groups 100% developed  as of October 7, 2005 id 100% developed  as of October 7, 2005 tty 100% developed  as of October 7, 2005

System Information

uptime 100% developed  as of October 7, 2005 uname 50% developed  as of October 7, 2005 dmesg 75% developed  as of October 7, 2005 free 50% developed  as of October 7, 2005 vmstat 50% developed  as of October 7, 2005 top 25% developed  as of October 7, 2005 df 75% developed  as of October 7, 2005 hostname 75% developed  as of October 7, 2005

Networking

ifconfigifdownifup

Process Management

nohup 50% developed  as of October 7, 2005 ps 75% developed  as of October 7, 2005 kill 25% developed  as of October 7, 2005 pgrep 50% developed  as of October 7, 2005 pidof 50% developed  as of October 7, 2005 killall 75% developed  as of October 7, 2005

Devices

fuser 50% developed  as of October 7, 2005 lsof 50% developed  as of October 7, 2005 fstat

Kernel Commands

lsmod 25% developed  as of October 7, 2005 modprobesysctl

Miscellaneous

sync 100% developed  as of October 7, 2005 echo 75% developed  as of October 7, 2005 printfcal 50% developed  as of October 7, 2005 date 100% developed  as of June 26, 2006 time 50% developed  as of October 7, 2005 from 25% developed  as of October 7, 2005 mail25% developed  as of June 26, 2006 clear100% developed  as of June 26, 2006 seqteesleepyestruefalse

SW Development

adbarascccflowctagscxreff77ldlexlintmakenmobjdumpprofstripyacc

[edit | edit source]