-
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

(2) Seagate SAS Hard Drive Exos 7E8 3TB 7200RPM 128MB 12Gb/s 3.5 ST3000NM0035
$49.99

Seagate BarraCuda ST3000DM008 3TB Internal SATA 6Gb 3.5" Hard Drive 7200RPM 64MB
$91.99

Dell EMC WD-HITACHI H5H72101CLAR10T0 10TB 7.2K SAS 12Gb/s SED 3.5in A POH 0-50k
$189.99

Seagate ST500DM009 BarraCuda 500 GB 3.5" SATA III Desktop Hard Drive
$14.99

Toshiba MG04ACA400 4TB 3.5-inch SATA 6 Gb/s 7,200 RPM Internal Hard Drive
$49.99

Seagate ST28000NM001C 28TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$669.99

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD
$299.00

ST6000NM0034 DELL 6TB 7.2K 12G SAS 512E 3.5" ENTERPRISE HARD DRIVE 8D1V4 08D1V4
$54.99

WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604
$329.99

Seagate 6TB HDD ST6000NM0034 7.2K 3.5" SAS 12Gb/s (NOT FOR PC - FOR SERVER ONLY)
$87.00