command line

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

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