x404.co.uk
http://www.x404.co.uk/forum/

Ubuntu commands
http://www.x404.co.uk/forum/viewtopic.php?f=4&t=19987
Page 1 of 1

Author:  cloaked_wolf [ Fri Aug 30, 2013 8:31 pm ]
Post subject:  Ubuntu commands

I managed to install OpenOffice onto ubuntu 12 machine. The problem is that it hasn't itegrated into the shell. Apparently I need to do this from the DEBS folder of the installation. No idea how to find it. I found that openoffice seemed to be installed in the opt directory but no idea how to access this from the command line.

On a windows machine, it would be cd\opt because opt would be c:\opt. Can't do this in linux.

Author:  rustybucket [ Sat Aug 31, 2013 7:06 am ]
Post subject:  Re: Ubuntu commands

Try
Code:
cd /opt


Blame MS for this one. ;)

Unfortunately, someone at Microsoft made the slashes in DOS the wrong way round, Windows inherited it and they've never corrected it. Consequently, generations of innocent Windows users are trained to think that local paths should be one way round and network paths the other. They shouldn't - they both do the same thing and should use the same character.

If you combine that with MS's spastic insistence on retaining drive letters, chaos ensues.

Hence why, when you type a web address, you have an internal brain-clunk as you have to change from the idiotic Windows-style C:\Users\JoeBloggs\ to the rest of the world's /home/JoeBloggs/ or http://bbc.co.uk/iplayer/

Oh and remember to leave a space - the path is an argument to the cd function

Also, when using cd

Code:
cd /        - Navigate to the root directory
cd /bin     - Navigate to the Essential binaries directory
cd /opt     - Navigate to the Optional apps directory

cd /home    - Navigate to the directory where users' information is stored
cd ~        - Navigate to your home directory (equivalent to cd /home/<your username>)

cd ./       - Use to navigate to or start a path from the current directory
cd ../      - Use to navigate to or start a path from the parent directory

pwd         - Print working directory i.e. the one you're currently in


Remember you can type a partial directory name and press tab to have auto-complete finish it for you.

Also remember that accessing certain folders may require super-user permissions. In this case, don't log in as root or anything drastic, just type sudo before your command and it will ask for your super-user password

Have a look at https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard for a bit more info

Author:  MrStevenRogers [ Sun Sep 01, 2013 10:58 am ]
Post subject:  Re: Ubuntu commands

ubuntu uses libre office
it should be in the repro's ...

Author:  cloaked_wolf [ Tue Sep 10, 2013 8:31 am ]
Post subject:  Re: Ubuntu commands

Awesomeness. I will give it a try. Too ingrained with years of MS-DOS and Windows so definitely struggling with ubuntu.

Author:  EddArmitage [ Wed Sep 11, 2013 12:58 pm ]
Post subject:  Re: Ubuntu commands

Another cd idiom I use relatively frequently is the following to change into Bob's home directory:

Code:
cd ~bob

Author:  forquare1 [ Sun Oct 06, 2013 8:37 am ]
Post subject:  Re: Ubuntu commands

And a couple more:
Code:
cd         - Go home (same as `cd ~` and `cd $HOME`
cd -       - Go back to the last folder you were in

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/