LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-22-2015, 02:23 PM   #16
RobInRockCity
Member
 
Registered: Feb 2015
Posts: 141

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by astrogeek View Post
Actually, port 22 is the ssh service default port - cyberduck just uses what ssh already provides.
Right.


Quote:
Originally Posted by astrogeek View Post
Yes there is something wrong with dragging and dropping... It reinforces bad habits and blocks you from learning the superior and faster shell methods of navigating and referencing files and paths - without all that typing and without moving your hand to the mouse or touchpad!
*LOL* Okay, okay... Sorry, sensei!


Quote:
Originally Posted by astrogeek View Post
Well, most shells will be configured to keep a history file for most commands that you type - and that is usually a good thing, but you can turn it off if you like.

But the history will never include ssh login keys or password - those do not even enter the stream.
Good!


Quote:
Originally Posted by astrogeek View Post
Those who rave over it are those still trapped in the gooey paradigm, who have not yet tried to overcome that crippling mental block!
Fair enough!


Quote:
Originally Posted by astrogeek View Post
They are infinitely more likely to get it from cPanel itself than from an SSH connection.
Okay.


Quote:
Originally Posted by astrogeek View Post
And you also need to realize that what you call your "cpanel username and password" are almost certainly just your server account username and login password - cpanel is just another glitzy gooey that hides that fact along with most of the functionality otherwise available to you!
I use the two terms synonymously. (Another bad habit I supoose.)

But how I used them above was to say that my VPS Username and VPS Passphrase are the "keys to the kingdom" and so I am being very careful!!!


Quote:
Originally Posted by astrogeek View Post
You just don't yet know your way around the filesystem, or the facilities provided by the shell to make navigation and path references fast and easy. Surely you don't think you have to type them all!
Actually, yes I did.


Quote:
Originally Posted by astrogeek View Post
For example, in my shell I just looked for a file...

Code:
ls -l /usr/share/doc/mobile-broadband-provider-info-20120614/mobile-broadband-provider-info.SlackBuild
-rw-r--r-- 1 root root 3731 Jun 24  2012 /usr/share/doc/mobile-broadband-provider-info-20120614/mobile-broadband-provider-info.SlackBuild
You don't think I typed all that do you?

You just need to learn how to use the simple tools already at your fingertips!
Okay, fair enough.


That is one fear of mine of using command-line... I tend to have VERY deep filing structures, and I tend to be very VERBOSE in directory and filenames, so I'd hate to have to type all of that.

For instance, I might have this...
Code:
MBP 01 > Users > rob > Documents > Business > 20-ACME > 10-DEV > 30-Linux > 01-Reference > Why-Command-Line-is-Superior-to-Using-a-GUI-to-Navigate-Your-Computer.pdf


Quote:
Originally Posted by astrogeek View Post
I bet you had to learn how to use all the gooey tools too. You weren't born knowing them either were you? This is no more difficult, and much more useful...
Of course.


Quote:
Originally Posted by astrogeek View Post
You are welcome, and good luck!

As with all things, you will get out what you put in. But most importantly, stop trying to convince yourself that it is difficult - it isn't! Propaganda...
Sure thing.


Quote:
Originally Posted by astrogeek View Post
Concentrate on just learning your way around in a shell and the basic concepts and methods of filesystem navigation.

A good place to start is the Rute Exposition and Bash Beginners Guide.

And learn to use the man pages - they are always available and your best friend!
Thanks for the encouragement and references.


So, this may sound funny being on a "Linux" website, but if I try to do all of this using my MacBook would that be okay.

Or is there enough of a difference between OS-X and Linux that I'd want to install Linux?

I mean down the road and when I have another computer, it would be cool to have an entire Linux box. But due to several constraints (e.g. Time, Resources, $$$), I can't really go out and get another laptop or even touch my current MacBook Pro which is for work and is not to be tinkered with!!!

When I joined this forum, my objective was to get help with things like SSH, SFTP, FTP Clients, etc. so that I could manage my VPS and website.

But because of your own enthusiasm about command-line, I must say that I am intrigued and curious to learn this different paradigm!!

Sincerely,


Rob

Last edited by RobInRockCity; 02-22-2015 at 02:33 PM.
 
Old 02-22-2015, 03:07 PM   #17
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by RobInRockCity View Post
Right.




*LOL* Okay, okay... Sorry, sensei!




Good!




Fair enough!




Okay.




I use the two terms synonymously. (Another bad habit I supoose.)

But how I used them above was to say that my VPS Username and VPS Passphrase are the "keys to the kingdom" and so I am being very careful!!!




Actually, yes I did.




Okay, fair enough.


That is one fear of mine of using command-line... I tend to have VERY deep filing structures, and I tend to be very VERBOSE in directory and filenames, so I'd hate to have to type all of that.

For instance, I might have this...
Code:
MBP 01 > Users > rob > Documents > Business > 20-ACME > 10-DEV > 30-Linux > 01-Reference > Why-Command-Line-is-Superior-to-Using-a-GUI-to-Navigate-Your-Computer.pdf




Of course.




Sure thing.




Thanks for the encouragement and references.


So, this may sound funny being on a "Linux" website, but if I try to do all of this using my MacBook would that be okay.

Or is there enough of a difference between OS-X and Linux that I'd want to install Linux?

I mean down the road and when I have another computer, it would be cool to have an entire Linux box. But due to several constraints (e.g. Time, Resources, $$$), I can't really go out and get another laptop or even touch my current MacBook Pro which is for work and is not to be tinkered with!!!

When I joined this forum, my objective was to get help with things like SSH, SFTP, FTP Clients, etc. so that I could manage my VPS and website.

But because of your own enthusiasm about command-line, I must say that I am intrigued and curious to learn this different paradigm!!

Sincerely,


Rob
Rob there are some similarities between the terminals and shells commands on Mac OS X and Linux. they both use the bash shell. The commands will have similar output and options and arguments. IE ssh username@ip is the same on both MAC and Linux or cp is going to work the same way. You will occasionally run into a situation where one of the systems will not have the command you are looking for but you can get the same information in a different way.

Also I would like to suggest this free book. http://linuxcommand.org/tlcl.php
 
Old 02-22-2015, 05:39 PM   #18
RobInRockCity
Member
 
Registered: Feb 2015
Posts: 141

Original Poster
Rep: Reputation: Disabled
Okay, I just lost my SSH and command-line virginity! *LOL*

I was able to successfully log in to my VPS using Terminal with...
Code:
ssh my_vps_username@my_vps_ip -i path/to/privatekeyfile

And then I was also able to copy all of the files and folders that my web host originally put into my Web Root and copy them into a backup folder by doing this...

Code:
cp -a ~/public_html/. ~/z_webhost_orig/

Only took me like 2 hours to figure things out - even with everyone's help on here - but I did it!

(I need a nap!!)


Oh, and I was able to make a copy of the original files WITHOUT screwing with the modified_on date and the file meta-data which is expected by me when I "copy" stuff!!!!!!

To hell with my web host and the snotty kid who couldn't help, and to hell with cPanel on this particular task!!!

Thanks for everyone's help!!


Rob
 
Old 02-22-2015, 07:14 PM   #19
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Quote:
Quote:
Originally Posted by astrogeek View Post
You just don't yet know your way around the filesystem, or the facilities provided by the shell to make navigation and path references fast and easy. Surely you don't think you have to type them all!

Quote:
Actually, yes I did.
Prepare to be amazed. Introducing - the Tab Key

In terminal in a directory with two file names.
aklsjg4oisahj4dgiojheroij64gf646.tmp
kjgs0987976gas98790sdfs.conf

To remove the .tmp file I would type this exactly (<Tab> meaning hitting the tab key, not typing '<Tab>)'

Code:
rm a<Tab>
This will expand (in the terminal line) to
Code:
rm aklsjg4oisahj4dgiojheroij64gf646.tmp
It's little things like this (autocomplete) that make terminal so powerful. Reading through some guides linked will be a excellent first step.

Last edited by Miati; 02-22-2015 at 07:18 PM.
 
Old 02-22-2015, 09:56 PM   #20
RobInRockCity
Member
 
Registered: Feb 2015
Posts: 141

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Miati View Post
Prepare to be amazed. Introducing - the Tab Key

In terminal in a directory with two file names.
aklsjg4oisahj4dgiojheroij64gf646.tmp
kjgs0987976gas98790sdfs.conf

To remove the .tmp file I would type this exactly (<Tab> meaning hitting the tab key, not typing '<Tab>)'

Code:
rm a<Tab>
This will expand (in the terminal line) to
Code:
rm aklsjg4oisahj4dgiojheroij64gf646.tmp
It's little things like this (autocomplete) that make terminal so powerful.
That's impressive!!


Quote:
Originally Posted by Miati View Post
Reading through some guides linked will be a excellent first step.
Once I get my website up and live, I hope to look through all of the guides you guys gave me.

Maybe I can try to do a couple of hours a week reading them.

And then maybe in a couple of months I will start to get the true benefits of command-line Linux.

(Did you see what I accomplished today in my post above?)

Thanks for your help!!

Sincerely,


Rob

P.S. If I didn't know any better, I'd think you guys are getting a commission or something on new command-line converts!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Accessing Windows shared drive from command line michaelmalak Linux - Networking 2 11-10-2008 07:34 PM
Accessing command line arguments from a library function? tojo2 Programming 3 05-25-2005 04:56 PM
[php] accessing command line dtra Linux - Software 1 04-26-2005 08:19 PM
Accessing samba shares from command line paul.nel Linux - Software 4 01-24-2004 09:02 AM


All times are GMT -5. The time now is 07:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration