-
Identify the command, options and arguments in the following:
ls -al /etc
Answer:
The command is: ls
There are two options: a and l
The argument is: /etc
hello there, here is an odd question. i know what these commands do but i dont understand what he means by arguments. ls lists the files and folders in a specific directory, a and l are the options, but how is /etc an argument. what does the term argument mean?
-
Senior Member
registered user
/etc is the searchpath to the dir where most (90%+) of systemwide configfiles are situated.
remaining configfiles you have to read the manual for ther specific program.
there is a bunch of files in your /home/username aswell, these are for the users settings.
-
interesting. well what does the term argument mean though. i was reading the floppix stuff and the guy said to identify the options and arguments in this command. i know what the options are but i dont know what the argument is and why. thanx in advance
-
Senior Member
registered user
cp /home/username/text.txt cp /home/username/text2.txt
there cp is copy., /home/username/text.txt is argument 1 and /home/username/text2.txt argument 2.
that is copy 1 to 2, not much more than that.
even a regular expression could be an argument, say cp -a /home/usernamne/* /home/usernamebackup/ the -a is preserve permisions and be recursive (for more look in man cp),
that would copy everything including dirs subdirs with permision preserved... from /home/username to the dir /home/usernamebackup.
and as you know /home/usernamebackup can be a different disk temporarily mounted there, or a diferent partition/disk in the computer...
these things will becoe more clear after a time of use.
-
lol, nice. these are all new terms to me. lol as you can tell. so i take it that the * means everything with in the/username folder. this is going to be tough to do full time work and also school.
Similar Threads
-
By wobbler in forum Customising & Remastering
Replies: 7
Last Post: 11-22-2005, 08:22 PM
-
By bgsneeze in forum Customising & Remastering
Replies: 0
Last Post: 08-27-2004, 03:27 PM
-
By cecilbdemented in forum General Support
Replies: 0
Last Post: 07-31-2004, 10:23 AM
-
By koma in forum General Support
Replies: 7
Last Post: 03-15-2004, 08:04 AM
-
By beforewisdom in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 03-24-2003, 09:39 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Intel GRAMPA BURST 168-pin 486 CPU Interposer/Testing Adapter Board Vintage
$289.99

Title:Rare Vintage Magnetic Core Memory Board Plane – Retro Computing Collectibl
$2000.00

Vintage eMate 300 Computer System Rare Kids Laptop Newton Operating System
$349.99

Vintage Promise EIDEMAX Enhanced IDE Disk Controller ISA Non-RAID Card Boxed
$34.99

Vintage Intel i860 A80860XP-40 SX582 RISC CPU Ceramic RARE SSpec Retro Computing
$178.46

Vintage APPLE Computer Keyboard M0110 and Mouse LOT M0100 & Desktop Bus
$129.00

Vintage Intel i860 A80860XR-33 SX349 RISC CPU Ceramic RARE SSpec Retro Computing
$142.76

RARE Sealed Montezuma Micro CP/M TRS-80 Model 4 Software 900-0600 Vintage
$279.99

Vintage Laptop Lot With IDE Laptop Drives Lot Of 5 Laptops
$300.00

Vintage Sun 320-1005 Type 4 Keyboard & 370-1170 Type-4 Mouse & Optical Mouse Pad
$129.00