LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2016, 06:03 PM   #1
asw225
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Rep: Reputation: Disabled
Having trouble on two questions


I am having trouble answering these two questions. Can anyone help me out?

1. To refer to the file afile.txt in the directory one level above the current one, you would type __?_ afile.txt

2. What can you do locally that you can’t do from a remote login via SSH, provided both computers are configured to permit the actions?

a. Run administrative commands via sudo
b. Edit files with a text-mode text editor
c. Edit files with a GUI text editor
d. Log out from the session by typing exit
e. None of the above
 
Old 02-20-2016, 06:36 PM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
LOL
 
Old 02-20-2016, 06:37 PM   #3
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
http://www.linuxquestions.org/questi...4/#post5049376
 
Old 02-20-2016, 06:40 PM   #4
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
It's like you copied it straight off the sheet? _ _
  1. yes
  2. no
 
Old 02-20-2016, 06:44 PM   #5
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
One more: http://www.linuxquestions.org/linux/rules.html
 
Old 02-20-2016, 07:19 PM   #6
asw225
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
Ahh I did not know I couldn't ask for hw help. Sorry everyone!

If pointers are permitted, I would appreciate links to lead materials to learn about what I am looking for. Thanks in advance!
 
Old 02-20-2016, 07:34 PM   #7
asw225
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
To fill everyone in tried to reverse engineer the process to see how I can refer back to a certain file.

I created a file using the GUI and stored it my Downloads. Then I created a new folder within my downloads and saved another file there.

Then I entered the Terminal and did cd Downloads.

Now I am a little stuck because I want to enter the New Folder but I can't because I don't know the right command. : /

Then I was hoping to enter enter the correct command which should be the answer to question 1
 
Old 02-20-2016, 07:40 PM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
Ahh I did not know I couldn't ask for hw help. Sorry everyone!
No-one here has a problem with you asking for homework help. They do have issues with you asking to do your homework for you though.

You've surely covered these topics in whatever course you're doing, have you asked your tutor for clarification?

As in the rules, tell us what you've done so far, what information sources, text books, etc you're using and what exactly about the question you don't understand and you're more likely to get pointers.

Play Bonny!

 
Old 02-20-2016, 07:57 PM   #9
asw225
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
So I just started taking a linux course. Everything is brand new to me as I never dealt with type of interface before. I am not in the computer field yet either..., but hope to obtain a degree that might get me there!

This course just started. It's an online course since I work full-time. The learning materials are pretty much just readings from the book- Linux Essentials. I think the book is a little hard to follow which makes trying to find the answers to the questions a little difficult. I do best with learning from youtube videos. The problem with that is, there isn't one tailored to the course. The answers within the chapter we are on have eluded me so I have been scouring google for material.

For the fist question, the text mentions using "U" to browse one level up but that's within the info info command so I don't think that's right. The internet has said it to go back you do .. / but I don't think that's right either because I need to access a specific file within the previous folder. At least that is what I think Q1 is asking.
 
Old 02-20-2016, 08:03 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
This will get you started.
 
Old 02-21-2016, 01:45 AM   #11
fido_dogstoyevsky
Member
 
Registered: Feb 2015
Location: Victoria, Australia
Distribution: Slackware 15
Posts: 490
Blog Entries: 2

Rep: Reputation: 576Reputation: 576Reputation: 576Reputation: 576Reputation: 576Reputation: 576
Quote:
Originally Posted by asw225 View Post
So I just started taking a linux course. Everything is brand new to me as I never dealt with type of interface before. I am not in the computer field yet either..., but hope to obtain a degree that might get me there!

This course just started. It's an online course since I work full-time. The learning materials are pretty much just readings from the book- Linux Essentials. I think the book is a little hard to follow which makes trying to find the answers to the questions a little difficult.
You really need to have a working installation to play with because you won't learn without actually trying things out - what do you have available?
Quote:
Originally Posted by asw225 View Post
I do best with learning from youtube videos. The problem with that is, there isn't one tailored to the course. The answers within the chapter we are on have eluded me so I have been scouring google for material.
Keep doing this, and concentrate on the online documentation for your distribution.
Quote:
Originally Posted by asw225 View Post
For the fist question, the text mentions... The internet has said... At least that is what I think Q1 is asking.
Quote:
Originally Posted by asw225 View Post
1. To refer to the file afile.txt in the directory one level above the current one, you would type __?_ afile.txt
How do you refer to a specific file in the current directory?
 
Old 02-21-2016, 08:46 AM   #12
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Can run live or Virtualbox.
 
1 members found this post helpful.
Old 02-21-2016, 10:16 AM   #13
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
If you enter the command
Code:
ls -a
you will see that the first 2 things listed are:
.
..
The first one is the current folder. The second one (..) is the parent folder.
To view a file in the current folder
Code:
cat ./file.txt
To view a file in the parent folder
Code:
cat ../file.txt
 
Old 02-21-2016, 10:27 AM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by jamison20000e View Post
Can run live or Virtualbox.
To expand upon this. If you're running Linux in a virtual machine then I would suggest running two instances and setting up an SSH server on one (there are plenty of tutorials on the internet) or if you're running Linux as a native OS then I would recommend running a virtual machine with the SSH server process installed and, possibly, things like Apache if that's part of your course -- that way you get to "do remote administration" without having to have two computers.
If your hardware is fairly modern then virtual machines (VMs) are a great way to learn an OS -- OK, you do need to learn the basics of what a VM is and how to set one up but once that is done it's great fun.
 
Old 02-21-2016, 01:12 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
for the first question there are two answers
the relative $PATH
and
The absolute $PATH
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
having trouble starting program after update (I think its permission trouble) Adol Linux - Newbie 3 05-31-2012 12:50 AM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
Two questions - installation trouble and logging in Rhadryn Linux - Newbie 10 07-24-2005 12:31 PM
trouble ahead, trouble behind....trouble with mplayer Goonie Linux - Software 3 07-02-2003 02:29 AM
xine-lib trouble & more misc questions...-- a samaritan expert's dream come true bandofmercy Linux - Newbie 6 03-01-2003 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration