Linux

Linux / CentOS install basic command line functions

I'm fairly new to linux I have ubuntu installed on a machine at home and now have a remote server with CentOS but certain commands not working like I'd expect.

whois, locate always return - -bash: locate: command not found

Trying to install it.


yum install locate
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
addons | 951 B 00:00

Android SDK Install bash: export: `/home/dolbert/Desktop/android-sdk-linux/tools': not a valid identifier

I'm following the instructions for installing the Android SDK http://developer.android.com/sdk/installing.html#Installing
So far just downloaded and then this instruction seems easy editing my .bashrc file to add this

From the android install instructions: export PATH=${PATH}:/tools

export PATH=$PATH:/home/dolbert/Desktop/android-sdk-linux/tools

Then I test to see if it took

I get this error
bash: export: `/home/dolbert/Desktop/android-sdk-linux/tools': not a valid identifier

rsync over ssh command to sync local to remote directory

I have a huge amount of files that I was using FTP to upload to my web server but now so large getting issues with FTP timing out and instead of starting out where I left off I have to start over from scratch. (Plus its power outage time of year here)

rsync over ssh seems like what I need but the examples I'm finding are not working. My ssh port is not the default and that is probably what is causing the errors (-p 2288 should work but?)

rsync error: syntax or usage error (code 1) at main.c(1219) [sender=3.0.6]

How do I tell which version of Linux I have

I have a dedicated server but software seems quite outdated now (Fedora something) yum and apt-get fail and think its time to upgrade or change my repos but not sure what version of linux I have on it.

I'd like to be able to just update what I not sure how to set up repos

Syndicate content