Tools and stuff
FTP
mget get multiple files
The -i flag turns off the interactive prompting for each file.
mget -i *.*
ref;https://www.toolbox.com/tech/operating-systems/question/how-to-use-ftp-mget-without-prompt-082903/
ftp username:password@my.domain.com
List files without green highlight
dan@arioch:/mnt/md0/plex$ ls -l | cat
total 20
drwxrwxrwx 2 root users 4096 Nov 3 15:09 datashare
drwxrwxrwx 2 root users 4096 Nov 3 14:45 homemovies
drwxrwxrwx 2 root users 4096 Nov 3 15:18 movies
drwxrwxrwx 2 root users 4096 Nov 3 14:45 photos
drwxrwxrwx 2 root users 4096 Nov 3 14:45 tvshow
Screen
pt-get install screen
screen --version
Named sessions are useful when you run multiple screen sessions. To create a named session, run the screen command with the following arguments:
screen -S testcon
You can detach from the screen session at any time by typing:
Ctrl+a d
To resume your screen session use the following command:
screen -r
To find the session ID list the current running screen sessions with:
screen -ls
If you want to restore screen testcon.pts-0, then type the following command:
screen -r testcon
End the session
screen -ls
There is a screen on: 162712.zoltan-copy
kill 62712
or
pkill screen
or
irst you need to re attach to the screen session
screen -r 23520 as you have done. Then press ctrl + a and then a k and press y when it asks if you really want to kill the session
additional commands
When you start a new screen session, it creates a single window with a shell in it.
You can have multiple windows inside a Screen session.
To create a new window with shell type Ctrl+a c, the first available number from the range 0...9 will be assigned to it.
Below are some most common commands for managing Linux Screen Windows:
Ctrl+a c Create a new window (with shell)
Ctrl+a " List all window
Ctrl+a 0 Switch to window 0 (by number )
Ctrl+a A Rename the current window
Ctrl+a S Split current region horizontally into two regions
Ctrl+a | Split current region vertically into two regions
Ctrl+a tab Switch the input focus to the next region
Ctrl+a Ctrl+a Toggle between the current and previous region
Ctrl+a Q Close all regions but the current one
Ctrl+a X Close the current region
ref;https://linuxize.com/post/how-to-use-linux-screen/