How we can see RHEL type linux 64 bit share in Windows 10 64 bit Network folder ?
I can in Linux file explorer ctrl+c, v files on win10 to/from Linux.
With WinSCP FTP I can sync website tree.
chown -R someuser:somegroup /your/folder/here/* (Recursive mode only works on directories, not files.) This will apply chown to all files and all subdirectories and sub-subdirectories of the specified folder. Use with care.
/opt/lampp/htdocs /u01/userhome/oracle
To create or delete file you need have a write permissions to the directory;
To change file or directory permissions you need to be its owner;
To change file modification time you need to be its owner (note that by default WinSCP updates file modification time when uploading).
See https://winscp.net/eng/docs/scripts
These two binaries alone support most (if not all) features you need. No installing or registration is required.
<?php
// call it so : php.exe example.php
//
system("winscp.com /script=example.txt", $exitcode);
if ($exitcode == 0) { echo "success\n"; }
else // handle an error
{ echo "error\n"; }
In example below, WinSCP connects to example.com server with account user, downloads file and closes the session.
Then it connects to the same server with the account user2 and uploads the file back.
# file example.txt
# Connect
open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx...="
# Change to remote directory
cd /home/user
# Download file to local directory d:\
get examplefile.txt d:\
# Disconnect
close
#
# Connect as a different user
open sftp://user2:password@example.com/
# Change to remote directory
cd /home/user2
# Upload file to current working directory
put -latest d:\examplefile.txt /home/user2
# or put -latest \toupload\* /home/user2/some_dir
# or synchronize local|remote|both [ <local directory> [ <remote directory> ] ]
#
# Disconnect
close
#
# Exit WinSCP
exit
To execute script file :
winscp.com /ini=nul /script=example.txt
https://winscp.net/eng/docs/scriptcommand_synchronize
synchronize local|remote|both [ \
local = changes from remote directory are applied to local directory. When the first parameter is remote = changes from local directory are applied to the remote directory. When the first parameter is both, both local and remote directories can be modified. When directories are not specified, current working directories are synchronized.Note: Overwrite confirmations are always off for the command.
Switch | Description |
---|---|
-preview | Preview changes only, do not synchronize. Transfer settings switches -permissions, -nopermissions, -speed, -transfer and -resumesupport have no effect. |
-nopermissions | Keep default permissions. |
-permissions=\ |
Set permissions (SFTP and SCP protocols only). |
-filemask=\ |
\ |
-transfer=\ |
Transfer mode: binary, ascii (text), automatic (by extension). |
-delete | Delete obsolete files. Ignored for both mode. |
-mirror | Mirror mode (synchronize also older files). Ignored for both mode. |
-speed=\ |
Limit transfer speed (in KB/s). |
-resumesupport= \ |
Configures automatic resume/transfer to temporary filename. |
-rawtransfersettings setting1=value1 setting2=value2 … | Allows configuring any transfer settings using raw format as in an INI file. E.g. to enable preserving of directory timestamps, use -rawtransfersettings PreserveTimeDirs=1. The switch should come only after other parameters. |
-criteria=\ |
Comparison criteria. Possible values are time, size, either and none. Ignored for both mode. |
-preservetime | Preserve timestamp. Enforced by default unless -criteria is size or none. |
-nopreservetime | Do not preserve timestamp. Ignored unless -criteria is size or none. |
Effective options: reconnecttime, failonnomatch
You can open additional sessions using Session > New Session or the corresponding toolbar button or keyboard shortcut. The Login dialog will show.
Workspace consists of set of sites you are connected to.
You can change several properties of remote files, including permissions (chmod) and ownership (chown, chgrp). You can change properties of one file only, set of files or even recursively for all files in selected directories.
To change properties, select files and directories and go to File(s) > Properties. If the server does not provide some of the file attributes in directory listing, they will be requested. Properties dialog will appear then. You can also use remote file context menu or click respective toolbar button.
Commands for selecting files are available from Mark menu.
To move remote files, select them in file panel and then go to File(s) > Move to. You can also drag selected files to a different directory in file panel listing or directory tree.
To duplicate remote files, select them in file panel and then go to File(s) > Duplicate.
Edit/open remote file using editor or associated application on local machine. Once you change the file, WinSCP uploads it back.
If your SSH server allows changing your account password, go to Session > Change Password to request that.