D
Deleted member 67029
Guest
How does one copy a directory? I tried the following command, but it didn't work:
cp foo/ bar/
cp foo/ bar/
Fundamental paradigm of Unix and all Unix-like systems:It looks like a file to me, but ok. Thanks
Try "ls -F", it decorates every file system object with what kind of thing it is in its output. Regular files don't get decorated at all. Executable files get a "*" behind them. Directories get a trailing slash like "dir/". Soft links get an "@". And strange file system entries (devices, socket, fifos, ...) get stranger characters.It looks like a file to me, but ok. Thanks
It looks like a file to me, …
root@mowa219-gjp4-8570p:~ # file /var/run/log
/var/run/log: socket
root@mowa219-gjp4-8570p:~ #
man 1 fileroot@mowa219-gjp4-8570p:~ # bfs -s -type s /var/run
/var/run/devd.pipe
/var/run/devd.seqpacket.pipe
/var/run/log
/var/run/logpriv
/var/run/cups/cups.sock
/var/run/dbus/system_bus_socket
/var/run/user/1002/kdeinit5__0
/var/run/user/1002/klauncheriYzkqN.1.slave-socket
/var/run/user/1002/vscode-f8b69df7-1.56.2-main.sock
/var/run/user/1002/vscode-git-6c564a3a88.sock
/var/run/user/1002/akonadi/akonadiserver-cmd.socket
/var/run/user/1002/akonadi/akonadiserver-ntf.socket
/var/run/user/1002/keyring/control
root@mowa219-gjp4-8570p:~ #