Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A Copy files while showing progress

Why not simply use ls -l on the target file? Or ls -lt | head on the directory? The -lt option makes ls to show long description, including size and timestamp, while sorting by timestamp. So you ...

posted 11mo ago by watchmaker‭  ·  edited 11mo ago by watchmaker‭

Answer
#2: Post edited by user avatar watchmaker‭ · 2025-10-23T17:30:28Z (11 months ago)
addition
  • Why not simply use `ls -l` on the target file? Or `ls -lt | head` ?
  • The `-lt` option makes `ls` to show ***l***ong description, including size and timestamp, while sorting by ***t***imestamp.
  • So you can see, from the timestamp, if the command has done recent changes, and from the size, what is the progress.
  • Maybe you have to send the `cp` command to the background (preferably by adding an "&" at the end of it, or to open another shell.
  • If something looks strange, you can uses `top` or `ps aguwx | grep <yourfilename>` to see if the process is still actve.
  • Why not simply use `ls -l` on the target file? Or `ls -lt | head` on the directory?
  • The `-lt` option makes `ls` to show ***l***ong description, including size and timestamp, while sorting by ***t***imestamp.
  • So you can see, from the timestamp, if the command has done recent changes, and from the size, what is the progress.
  • Maybe you have to send the `cp` command to the background (preferably by adding an "&" at the end of it, or to open another shell.
  • If something looks strange, you can uses `top` or `ps aguwx | grep <yourfilename>` to see if the process is still actve.
#1: Initial revision by user avatar watchmaker‭ · 2025-10-23T17:29:20Z (11 months ago)
Why not simply use `ls -l` on the target file? Or `ls -lt | head` ?

The `-lt` option makes `ls` to show ***l***ong description, including size and timestamp, while sorting by ***t***imestamp.

So you can see, from the timestamp, if the command has done recent changes, and from the size, what is the progress.

Maybe you have to send the `cp` command to the background (preferably by adding an "&" at the end of it, or to open another shell.

If something looks strange, you can uses `top` or `ps aguwx | grep <yourfilename>` to see if the process is still actve.