If you're looking for an casual command-line instrumentality to transportation files betwixt systems connected the aforesaid LAN, Jack Wallen believes croc is the instrumentality for the job.
When I privation to transportation files betwixt computers connected the aforesaid network, astir of the time, I usage the scp command. But erstwhile I privation thing a spot simpler to use, I crook to a precise useful command-line instrumentality called croc. With this easy-to-use tool, you tin transportation files and folders from 1 strategy to another, without having to retrieve overmuch successful the mode of commands.
SEE: Hiring Kit: Linux Administrator (TechRepublic Premium)
Croc is simply a cross-platform file-sharing instrumentality that creates a full-duplex connection furniture betwixt machines, truthful it doesn't necessitate the summation of larboard forwarding. Croc tin beryllium installed connected Linux, macOS and Windows, truthful you tin transportation files betwixt immoderate strategy connected your network.
I'm going to amusement you conscionable however casual croc is to instal and use.
What you'll request
I'll beryllium demonstrating connected 2 Linux machines, some of which are Ubuntu-based. If you're funny successful installing croc connected either macOS oregon Windows, you'll request to person either Scoop (Windows) oregon Homebrew (macOS) installed. You'll besides request a idiosyncratic with admin (sudo) rights. Let's get to work.
How to instal croc
To instal croc connected a Ubuntu-based distribution, download the .deb record with the command:
wget https://github.com/schollz/croc/releases/download/v9.4.2/croc_9.4.2_Linux-64bit.debNote: Make definite to cheque retired the croc download page to guarantee you're downloading the latest release.
You'll request to download that .deb record to each Ubuntu machines that volition usage croc. Once downloaded, instal croc with:
sudo dpkg -i croc*.debHow to usage croc
Let's accidental you person a record named trtest you privation to transportation from Machine A to Machine B. Log into Machine A, unfastened a terminal window, alteration into the directory lodging trtest, and contented the command:
croc trtestAfter verifying the transportation (by hitting Y), the bid volition output a codification to beryllium utilized connected the receiving machine, specified arsenic croc 7776-gorilla-london-turtle. Copy that full code.
Now, log into Machine B, unfastened a terminal window, and paste the codification you received from Machine A into the terminal. Hit Enter connected your keyboard. You volition beryllium prompted to verify the transfer. Hit Y and the record volition beryllium received connected Machine B.
If you don't privation to beryllium connected croc to make random codes, you tin archer it to usage a circumstantial codification similar so:
croc --code YOUR_CODE FILEWhere YOUR_CODE is simply a unsocial codification and FILE is the record to transfer.
To nonstop a record with a circumstantial code, connected Machine A, contented the command:
croc nonstop --code techrepublic_is_awesome trtestTo person the record utilizing the circumstantial code, connected Machine B contented the command:
croc techrepublic_is_awesomeAnd that's each determination is to utilizing croc. Even better, the aforesaid bid works for files oregon folders, truthful you don't person to adhd immoderate peculiar options erstwhile sending folders.
Subscribe to TechRepublic's How To Make Tech Work connected YouTube for each the latest tech proposal for concern pros from Jack Wallen.
Open Source Weekly Newsletter
You don't privation to miss our tips, tutorials, and commentary connected the Linux OS and unfastened root applications. Delivered Tuesdays
Sign up todayAlso spot
- Linux 101: Demystifying the Linux directory structure (TechRepublic)
- Linux 101: How to find thrust abstraction usage from the bid line (TechRepublic)
- How to go a developer: A cheat sheet (TechRepublic)
- How-to usher for Linux administrators (free PDF) (TechRepublic)
- Linux 101: What tech pros request to know (TechRepublic Premium)
- Linux, Android, and much unfastened root tech coverage (TechRepublic connected Flipboard)