Essensielle FreeBSD kommandoer

Syntax

CMD Equivalent

Beskrivelse (Norsk)

Description (English)

/stand/sysinstall

 

Start setup-programmet. Obs! Store muligheter for å rote til hele systemet-

Main setup program. Use with caution!!

[Tab]

[ctrl]+f

Fullfør filnavn. Ligner på [ctrl]+f i windows 200 shell (cmd /F:on)

Complete filename (similar til [ctrl]+f in windows 2000 shell)

| more

| more

Brukes sammen med andre kommandoer for å lese output som er mer enn en skjermhøyde.

Paginates command output

adduser

 

Legg til ny bruker

Add user

chown

 

Angi hvem som eier filen (bruker:gruppe)

Specify who owns the file (user:group)

chown -R user:group folder

 

Setter user:group som eier av folder og alle undermapper/filer

Sets user:group as the owner of folder and all subfolders/files

cp

copy

Kopier fil

Copy file

df -h

 

Viser ledig diskplass

 

fsck -y

chkdsk /f

Disksjekk

 

grep

 

Søk etter tekst i kommando-svar, for eksempel en ls liste

Search for text in command output

ifconfig

ipconfig

Vis info om nettverksoppsett

Show network card setup

kill

 

Send signal til en prosess, for eksempel Terminate

Signal (terminate) process

kill nn -s HUP

 

Be prosess nr nn om å lese konfig-filene på nytt. Brukes for eksempel sammen med inetd.

Tell process nn to re-read it’s config files if it supports this signal. Can be used with inetd

locate

dir /s

Sø>k etter fil/mappe

Find file or folder

ls

dir

Vis innhold i mappe

list directory (same as dir in win2k)

ls -G

 

Som ls, men med forskjellige farger

Colorized directory lisitng

ls -l

 

Som over, men langt format

Long format directory listing

mv

move, ren

Flytt eller angi nytt navn på en fil

Move or rename file

passwd

 

Endre passord

Change password

pkg_add nn

 

installer “pakken” nn

Install package nn

pkg_add -r nn

 

Let etter rett versjon og installer “pakken” nn

Search for correct version and install package nn

ps -ax

 

Vis alle systemprosesser

Show all system processes

ps -ax |grep nn

 

Vis alle systemprosesser som heter noe på nn

Show all system processes whose name contains nn

rm

del

Slett fil

Delete file

rmdir

rd

Slett mappe

Delete folder

set prompt = “%h %t %~ %# “

 

 

Now that you have installed tcsh, you can adjust your prompt. You can find the details in the manual page for tcsh, but here is a line to put in your .tcshrc that will tell you how many commands you have typed, what time it is, and what directory you are in. It also produces a > if you are an ordinary user and a # if you are root, but tsch will do that in any case

set prompt= “%~#”

 

Viser current directory. settes i /root/.cshrc

 

Author: DizzyBadger

SQL Server DBA, Cluster expert, Principal Analyst

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.