.\" -*- coding: UTF-8 -*-
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH CP 1 "April 2026" "GNU coreutils 9.11" Brukerkommandoer
.SH NAVN
cp \- copy files and directories
.SH OVERSIKT
\fBcp\fP [\fI\,VALG\/\fP]... [\fI\,\-T\/\fP] \fI\,KILDE MÅL\/\fP
.br
\fBcp\fP [\fI\,VALG\/\fP]... \fI\,KILDE\/\fP... \fI\,MAPPE\/\fP
.br
\fBcp\fP [\fI\,VALG\/\fP]... \fI\,\-t MAPPE KILDE\/\fP...
.SH BESKRIVELSE
.\" Add any additional description here
.PP
Kopier KILDE til MÅL, eller flere KILDE(r) til ønsket MAPPE.
.PP
Argumenter som er obligatoriske for lange valg, er også obligatoriske for
korte valg.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-a'\fB\-a, \-\-archive\fP\X'tty: link'
Tilsvarer \fB\-dR\fP \fB\-\-preserve\fP=\fI\,all\/\fP.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-attributes\-only'\fB\-\-attributes\-only\fP\X'tty: link'
Ikke kopier fildataene, bare attributtene.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-backup'\fB\-\-backup[=\fP\fICONTROL\fP\fB]\fP\X'tty: link'
Lag en sikkerhetskopi av hver målfil.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-b'\fB\-b\fP\X'tty: link'
Likner \fB\-\-backup\fP, men kan ikke brukes med argumenter.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-copy\-contents'\fB\-\-copy\-contents\fP\X'tty: link'
Kopier innholdet i spesialfiler når operasjonen kjører rekursivt.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-d'\fB\-d\fP\X'tty: link'
Tilsvarer \fB\-\-no\-dereference\fP \fB\-\-preserve\fP=\fI\,links\/\fP.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-debug'\fB\-\-debug\fP\X'tty: link'
explain how a file is copied. Implies \fB\-v\fP
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-f'\fB\-f, \-\-force\fP\X'tty: link'
Fjern eksisterende målfil hvis den ikke kan åpnes, og prøv på nytt (dette
valget ignoreres hvis valget \fB\-n\fP brukes i tillegg).
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-i'\fB\-i, \-\-interactive\fP\X'tty: link'
Spør om bekreftelse før fil(er) overskrives (overstyrer evt. bruk av valget
\fB\-n\fP).
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-H'\fB\-H\fP\X'tty: link'
Følg kommandolinje\-symbolske lenker lenker i KILDEn.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-L'\fB\-L, \-\-dereference\fP\X'tty: link'
Følg alltid symbolske lenker i KILDEn.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-P'\fB\-P, \-\-no\-dereference\fP\X'tty: link'
Følg aldri symbolske lenker i KILDEn.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-keep\-directory\-symlink'\fB\-\-keep\-directory\-symlink\fP\X'tty: link'
follow existing symlinks to directories
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-l'\fB\-l, \-\-link\fP\X'tty: link'
Lag harde lenker i stedet for å kopiere.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-n'\fB\-n, \-\-no\-clobber\fP\X'tty: link'
(deprecated) silently skip existing files. See also \fB\-\-update\fP
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-p'\fB\-p\fP\X'tty: link'
Tilsvarer \fB\-\-preserve\fP=\fI\,mode,ownership,timestamps\/\fP
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-preserve'\fB\-\-preserve[=\fP\fIATTRLISTE\fP\fB]\fP\X'tty: link'
preserve the specified attributes
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-no\-preserve'\fB\-\-no\-preserve=\fP\fIATTRLISTE\fP\X'tty: link'
Ikke bevar valgte attributter.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-parents'\fB\-\-parents\fP\X'tty: link'
Bruk fullstendig kildefilnavn under MAPPE.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-R'\fB\-R, \-r, \-\-recursive\fP\X'tty: link'
Kopier (under\-)mapper rekursivt.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-reflink'\fB\-\-reflink[=\fP\fINÅR\fP\fB]\fP\X'tty: link'
Kontroller klone\-/CoW\-kopier. Se nedenfor.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-remove\-destination'\fB\-\-remove\-destination\fP\X'tty: link'
Fjern alle filer som finnes allerede før de blir forsøkt åpnet (i motsetning
til \fB\-\-force\fP).
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-sparse'\fB\-\-sparse=\fP\fINÅR\fP\X'tty: link'
Kontroller oppretting av ikke\-sammenhengende filer. Se nedenfor.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-strip\-trailing\-slashes'\fB\-\-strip\-trailing\-slashes\fP\X'tty: link'
Fjern evt. avsluttende skråstreker fra hvert KILDE\-argument.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-s'\fB\-s, \-\-symbolic\-link\fP\X'tty: link'
Lag symbolske lenker i stedet for å kopiere.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-S'\fB\-S, \-\-suffix=\,\fP\fIETTERN\fP\X'tty: link'\/
Overstyr standard filetternavn på sikkerhetskopier.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-t'\fB\-t, \-\-target\-directory=\,\fP\fIMAPPE\fP\X'tty: link'\/
Kopier alle KILDEargumenter til MAPPE.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-T'\fB\-T, \-\-no\-target\-directory\fP\X'tty: link'
Behandle MÅL som en normal fil.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-update'\fB\-\-update[=UPDATE]\fP\X'tty: link'
control which existing files are updated;
UPDATE={all,none,none\-fail,older(default)}
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-u'\fB\-u\fP\X'tty: link'
equivalent to \fB\-\-update\fP[=\fI\,older\/\fP]. See below
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-v'\fB\-v, \-\-verbose\fP\X'tty: link'
Forklar hva som blir gjort.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-x'\fB\-x, \-\-one\-file\-system\fP\X'tty: link'
Forbli på dette filsystemet.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-Z'\fB\-Z\fP\X'tty: link'
Bruk standard type SELinux\-sikkerhetskontekst på målfil.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#cp\-\-context'\fB\-\-context[=\fP\fIKON\fP\fB]\fP\X'tty: link'
Tilsvarer \fB\-Z\fP, (eller, hvis CTX er valgt, bruk KON som SELinux\- eller
SMACK\-sikkerhetskontekst).
.TP
\X'tty: link https://www.gnu.org/software/coreutils/cp#cp\-\-help'\fB\-\-help\fP\X'tty: link'
Vis denne hjelpeteksten og avslutt.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/cp#cp\-\-version'\fB\-\-version\fP\X'tty: link'
Vis versjonsinformasjon og avslutt.
.PP
ATTR_LIST is a comma\-separated list of attributes. Attributes are 'mode' for
permissions (including any ACL and xattr permissions), 'ownership' for user
and group, 'timestamps' for file timestamps, 'links' for hard links,
\&'context' for security context, 'xattr' for extended attributes, and 'all'
for all attributes.
.PP
Ikke\-sammenhengende KILDEfiler oppdages som standard av en enkel heuristisk
metode, og MÅLfilene blir \- hvis aktuelt \- også ikke\-sammenhengende. Denne
oppførselen velges av \fB\-\-sparse\fP=\fI\,auto\/\fP. Velg
\fB\-\-sparse\fP=\fI\,always\/\fP for å lage en ikke\-sammenhengende MÅLfil når
KILDEfila inneholder en viss sekvens av tomme byte. Bruk
\fB\-\-sparse\fP=\fI\,never\/\fP for å slå av oppretting av slike filer.
.PP
UPDATE controls which existing files in the destination are replaced.
\&'all' is the default operation when an \fB\-\-update\fP option is not
specified, and results in all existing files in the destination being
replaced. \&'none' is like the \fB\-\-no\-clobber\fP option, in that no files in
the destination are replaced, and skipped files do not induce a failure.
\&'none\-fail' also ensures no files are replaced in the destination, but any
skipped files are diagnosed and induce a failure. \&'older' is the default
operation when \fB\-\-update\fP is specified, and results in files being replaced
if they're older than the corresponding source file.
.PP
By default or with \fB\-\-reflink\fP=\fI\,auto\/\fP, cp will try a lightweight copy,
where the data blocks are copied only when modified, falling back to a
standard copy if this is not possible. With \fB\-\-reflink\fP[=\fI\,always\/\fP] cp
will fail if CoW is not supported, while \fB\-\-reflink\fP=\fI\,never\/\fP ensures a
standard copy is performed.
.PP
Suffikset for sikkerhetskopierte filer er «~», med mindre du velger noe
annet med \fB\-\-suffix\fP eller SIMPLE_BACKUP_SUFFIX. Metoden for
versjonskontroll kan velges med \fB\-\-backup\fP eller via miljøvariabelen
VERSION_CONTROL. Følgende verdier er gyldige:
.TP
none, off
ikke lag sikkerhetskopier (ikke engang med \fB\-\-backup\fP)
.TP
numbered, t
lag nummererte sikkerhetskopier
.TP
existing, nil
nummererte sikkerhetskopier hvis det allerede finnes, enkle (simple) ellers
.TP
simple, never
alltid lag enkle sikkerhetskopier
.PP
Som et spesialtilfelle vil cp lage sikkerhetskopi av KILDE hvis både
\fB\-\-force\fP og \fB\-\-backup\fP er valgt, og både KILDE og MÅL er det samme navnet
på en vanlig fil.
.SH FORFATTER
Skrevet av Torbjorn Granlund, David MacKenzie og Jim Meyering.
.SH "RAPPORTERING AV FEIL"
Rapporter feil til: bug\-coreutils@gnu.org
.br
Nettside for GNU coreutils:
.br
Generell hjelp til bruk av GNU\-programvare:
.br
Rapporter oversettelsesfeil til
.SH OPPHAVSRETT
Copyright \(co 2026 Free Software Foundation, Inc. Lisens GPLv3+: GNU GPL
versjon 3 eller senere .
.br
Dette er fri programvare. Du kan endre og dele den videre. Det stilles INGEN
GARANTI, i den grad dette tillates av gjeldende lovverk.
.SH "SE OGSÅ"
\fBinstall\fP(1)
.PP
.br
Fullstendig dokumentasjon:
.br
eller lokalt: info \(aq(coreutils) cp invocation\(aq
.PP
.SH OVERSETTELSE
Den norske oversettelsen av denne manualsiden er laget av
.
.PP
Denne oversettelsen er gratis dokumentasjon; se
.UR https://www.gnu.org/licenses/gpl-3.0.html
GNU General Public License versjon 3
.UE
eller senere for opphavsrettsvilkår. Vi påtar oss INGEN ANSVAR.
.PP
Hvis du finner feil i oversettelsen av denne håndboksiden,
vennligst send en e-post til .