can ‘dd’ be used to clone to a smaller HDD, knowing that partitions will need editing?
I’ve used dd to clone disks like this:
I’ve used dd to clone disks like this:
I was recently trying to learn more about how the shell works and was looking at how the clear command works. The executable is located in /usr/bin/clear and it seems to print out a bunch of blank lines (equal to the height of the terminal) and puts the cursor at the top-left of the terminal.
I am thinking on a system, where /etc were tracked on a remote git repository. I am thinking on a git workflow, where every host machine where a different branch.
I am often logged in several SSH sessions at once. To logout from several sessions, I press CTRL+d, until I am back on my local machine. However, I occasionally press it once too many, and my terminal exits. Is there a way to make CTRL+d unable to close my terminal ? I am using terminator … Read more
Let’s say we have a text file of forbidden lines forbidden.txt. What is a short way to filter all lines of a command output that exist in the text file?
I’m using URxvt 9.20 on debian jessie and I’m looking for a way to copy & paste text like I was used to with the gnome-terminal (Ctrl+Insert for copying, Shift+Insert for pasting).
I have created the following script that move old days files as defined from source directory to destination directory. It is working perfectly.
I’m on Arch linux, and when I open a new terminal tab, it always goes to $HOME. How can I make it so that when I open a new tab, it opens the shell in the directory I was in previously?
I need to read the following input into separate columns as variables?
input.txt
What I want to script is something along the lines of: