d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Can Anyone Help Me With Some Linux Commands?
Add Reply New Topic New Poll
Member
Posts: 16,059
Joined: Sep 3 2006
Gold: 1,135.00
Oct 9 2017 05:32pm
The path i'm working in is /home/intro112/start/2 directories (dir-and dir-b)2 files (Newfile-a and file-b)

Home
Intro112
Start
Dir-a & Dir-b
2 files in Dir-a (Newfile-a & File-b)


(These aren't in order)
1.) (I'm in dir-a) It's asking me to move new-filea to dir-b.
My answer: mv newfile-a /home/intro/start/dir-b
Could I instead do: mv newfile-a ../dir-b

2.) (I'm in dir-a) It's asking me to display start directory contents without moving to the start directory.
My answer: ls /home/intro112/start
Could I do : ls ..

3.) (I'm in dir-a) Move file-b to dir-b and rename the file to new-fileb
Not sure about this one

I'm a little confused about the . and .. commands, in my book it says that . will keep you in the working directory, and .. to mean the parent directory. Do you only want to use dots when you plan on actually moving to that directory?
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Oct 9 2017 06:48pm
dont post the same thread in multiple places. just post the content in one thread and link it so people won't waste time if it's already answered

http://forums.d2jsp.org/topic.php?t=77335174&f=257
Member
Posts: 10,281
Joined: Jan 7 2015
Gold: Locked
Warn: 60%
Oct 9 2017 08:29pm
bash is so hard amg
Member
Posts: 16,621
Joined: Jan 7 2017
Gold: 90.58
Oct 10 2017 03:47am
Quote (carteblanche @ Oct 9 2017 04:48pm)
dont post the same thread in multiple places. just post the content in one thread and link it so people won't waste time if it's already answered

http://forums.d2jsp.org/topic.php?t=77335174&f=257


cry more
Go Back To Computers & IT Topic List
Add Reply New Topic New Poll