Instruction
stringlengths
13
387
Response
stringlengths
1
532
Text
stringlengths
158
1.06k
Copy loadable kernel module "mymodule.ko" to the drivers in modules directory matchig current kernel.
sudo cp mymodule.ko /lib/modules/$(uname -r)/kernel/drivers/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy loadable kernel module "mymodule.ko" to the drivers in modules directory matchig current kernel. ### Response: sudo cp mymodule.ko /lib/modules/$(uname -r)/kernel/drivers/
Display all lines containing "IP_MROUTE" in the current kernel's compile-time config file.
cat /boot/config-`uname -r` | grep IP_MROUTE
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Display all lines containing "IP_MROUTE" in the current kernel's compile-time config file. ### Response: cat /boot/config-`uname -r` | grep IP_MROUTE
Display current running kernel's compile-time config file.
cat /boot/config-`uname -r`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Display current running kernel's compile-time config file. ### Response: cat /boot/config-`uname -r`
Find all loadable modules for current kernel, whose name includes "perf"
find /lib/modules/`uname -r` -regex .*perf.*
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Find all loadable modules for current kernel, whose name includes "perf" ### Response: find /lib/modules/`uname -r` -regex .*perf.*
Look for any instance of "HIGHMEM" in the current kernel's compile-time config file.
grep “HIGHMEM” /boot/config-`uname -r`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Look for any instance of "HIGHMEM" in the current kernel's compile-time config file. ### Response: grep “HIGHMEM” /boot/config-`uname -r`
Search for command "tail" in the maps of the process with PID 2671
cat /proc/2671/maps | grep `which tail`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Search for command "tail" in the maps of the process with PID 2671 ### Response: cat /proc/2671/maps | grep `which tail`
Display all lines containing PROBES in the current kernel's compile-time config file.
grep PROBES /boot/config-$(uname -r)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Display all lines containing PROBES in the current kernel's compile-time config file. ### Response: grep PROBES /boot/config-$(uname -r)
Display all lines containing UTRACE in the current kernel's compile-time config file.
grep UTRACE /boot/config-$(uname -r)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Display all lines containing UTRACE in the current kernel's compile-time config file. ### Response: grep UTRACE /boot/config-$(uname -r)
Look for any instance of "ds1337" in the modules.alias file matching current kernel release
grep ds1337 /lib/modules/`uname -r`/modules.alias
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Look for any instance of "ds1337" in the modules.alias file matching current kernel release ### Response: grep ds1337 /lib/modules/`uname -r`/modules.alias
A no-op on filename with sed
sed -i "s/\\\\\n//g" filename
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: A no-op on filename with sed ### Response: sed -i "s/\\\\\n//g" filename
Abort the shell or script on the first failed command
set -e
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Abort the shell or script on the first failed command ### Response: set -e
Add "Line of text here" on top of each *.py files under current directory
find . -name \*.py -print0 | xargs -0 sed -i '1a Line of text here'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add "Line of text here" on top of each *.py files under current directory ### Response: find . -name \*.py -print0 | xargs -0 sed -i '1a Line of text here'
Add "Line of text here" on top of each *.py files under current directory
find . -name \*.py | xargs sed -i '1a Line of text here'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add "Line of text here" on top of each *.py files under current directory ### Response: find . -name \*.py | xargs sed -i '1a Line of text here'
Add "execute" to the permissions of all directories in the home directory tree
find ~ -type d -exec chmod +x {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add "execute" to the permissions of all directories in the home directory tree ### Response: find ~ -type d -exec chmod +x {} \;
Add "new." to the beginning of the name of "original.filename", renaming it to "new.original.filename".
rename 's/(.*)$/new.$1/' original.filename
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add "new." to the beginning of the name of "original.filename", renaming it to "new.original.filename". ### Response: rename 's/(.*)$/new.$1/' original.filename
Add "new." to the beginning of the name of "original.filename", renaming it to "new.original.filename".
rename 's/^/new./' original.filename
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add "new." to the beginning of the name of "original.filename", renaming it to "new.original.filename". ### Response: rename 's/^/new./' original.filename
Add "prefix" to every non-blank line in "file.txt"
nl -s prefix file.txt | cut -c7-
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add "prefix" to every non-blank line in "file.txt" ### Response: nl -s prefix file.txt | cut -c7-
Add "prefix_" to every non-blank line in "a.txt"
nl -s "prefix_" a.txt | cut -c7-
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add "prefix_" to every non-blank line in "a.txt" ### Response: nl -s "prefix_" a.txt | cut -c7-
Add '.avi' extension to all files/directories with '.mkv' extension under '/volume1/uploads' directory tree
find /volume1/uploads -name "*.mkv" -exec mv \{\} \{\}.avi \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add '.avi' extension to all files/directories with '.mkv' extension under '/volume1/uploads' directory tree ### Response: find /volume1/uploads -name "*.mkv" -exec mv \{\} \{\}.avi \;
Add a cron job to existing list, without removing existing ones, ro tun "scripty.sh" at 2:01 am, 3rd day of april (4th month), if that day happens to be a friday (5th day of the week starting with sunday=0).
cat <(crontab -l) <(echo "1 2 3 4 5 scripty.sh") | crontab -
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add a cron job to existing list, without removing existing ones, ro tun "scripty.sh" at 2:01 am, 3rd day of april (4th month), if that day happens to be a friday (5th day of the week starting with sunday=0). ### Response: cat <(crontab -l) <(echo "1 2 3 4 5 scripty.sh") | crontab -
Add a date time stamp to every line of output in "ping google.com"
ping google.com | xargs -L 1 -I '{}' date '+%c: {}'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add a date time stamp to every line of output in "ping google.com" ### Response: ping google.com | xargs -L 1 -I '{}' date '+%c: {}'
Add a line number to every line in "infile"
nl -ba infile
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add a line number to every line in "infile" ### Response: nl -ba infile
Add a line number to every line in "long-file"
nl -ba long-file \
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add a line number to every line in "long-file" ### Response: nl -ba long-file \
Add a number prefix followed by ')' to each line in "$string"
echo "$string" | nl -ba -s') '
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add a number prefix followed by ')' to each line in "$string" ### Response: echo "$string" | nl -ba -s') '
Add content of "filename" to the existing cron jobs of user "user", without removing the previously existing cron jobs.
crontab -l -u user | cat - filename | crontab -u user -
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add content of "filename" to the existing cron jobs of user "user", without removing the previously existing cron jobs. ### Response: crontab -l -u user | cat - filename | crontab -u user -
Add cron lists from "file1" and "file2" to list of cron jobs, giving errors for any lines that cannot be parsed by crontab.
cat file1 file2 | crontab
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add cron lists from "file1" and "file2" to list of cron jobs, giving errors for any lines that cannot be parsed by crontab. ### Response: cat file1 file2 | crontab
Add cron lists from "filename" to list of cron jobs, giving errors for any lines that cannot be parsed by crontab.
crontab filename
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add cron lists from "filename" to list of cron jobs, giving errors for any lines that cannot be parsed by crontab. ### Response: crontab filename
Add directory "$HOME/Pictures" to the directory stack
pushd "$HOME/Pictures"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add directory "$HOME/Pictures" to the directory stack ### Response: pushd "$HOME/Pictures"
Add executable permission to "java_ee_sdk-6u2-jdk-linux-x64.sh"
sudo chmod +x java_ee_sdk-6u2-jdk-linux-x64.sh
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add executable permission to "java_ee_sdk-6u2-jdk-linux-x64.sh" ### Response: sudo chmod +x java_ee_sdk-6u2-jdk-linux-x64.sh
Add executable permission to "pretty-print"
chmod +x pretty-print
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add executable permission to "pretty-print" ### Response: chmod +x pretty-print
Add executable permission to "rr.sh"
chmod +x rr.sh
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add executable permission to "rr.sh" ### Response: chmod +x rr.sh
Add execute permission to "ComputeDate", "col", and "printdirections" for all users
chmod a+x ComputeDate col printdirections
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add execute permission to "ComputeDate", "col", and "printdirections" for all users ### Response: chmod a+x ComputeDate col printdirections
Add execute permission to all files ending in ".sh"
chmod +x *.sh
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add execute permission to all files ending in ".sh" ### Response: chmod +x *.sh
Add group write permission to all files and directories in the current directory including hidden files and excluding ".."
chmod g+w $(ls -1a | grep -v '^..$')
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add group write permission to all files and directories in the current directory including hidden files and excluding ".." ### Response: chmod g+w $(ls -1a | grep -v '^..$')
Add group write permission to all files and directories in the current directory including hidden files and excluding ".."
chmod g+w .[^.]* ..?*
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add group write permission to all files and directories in the current directory including hidden files and excluding ".." ### Response: chmod g+w .[^.]* ..?*
Add group write permission to all files in the current directory
find . -maxdepth 0 -type f -exec chmod g+w {} ';'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add group write permission to all files in the current directory ### Response: find . -maxdepth 0 -type f -exec chmod g+w {} ';'
Add group write permission to all files matching "*" or "...*"
chmod g+w * ...*
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add group write permission to all files matching "*" or "...*" ### Response: chmod g+w * ...*
Add line numbers to each non-blank line in "file" starting with number 1000001
nl -v1000001 file
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add line numbers to each non-blank line in "file" starting with number 1000001 ### Response: nl -v1000001 file
Add newline before all 2nd and consequent occurrences of '3d3d' in file 'temp' and write each line from the output to files with prefix 'temp' and numeric suffixes
sed 's/3d3d/\n&/2g' temp | split -dl1 - temp
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add newline before all 2nd and consequent occurrences of '3d3d' in file 'temp' and write each line from the output to files with prefix 'temp' and numeric suffixes ### Response: sed 's/3d3d/\n&/2g' temp | split -dl1 - temp
Add prefix like number and "^M${LOGFILE}> " to every non-blank line received on standard input
nl -s"^M${LOGFILE}> "
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add prefix like number and "^M${LOGFILE}> " to every non-blank line received on standard input ### Response: nl -s"^M${LOGFILE}> "
Add read and execute permission to command "node"
sudo chmod +rx $(which node)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add read and execute permission to command "node" ### Response: sudo chmod +rx $(which node)
Add read and execute permission to every directory under the current directory
find . -type d -exec chmod +rx {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add read and execute permission to every directory under the current directory ### Response: find . -type d -exec chmod +rx {} \;
Add read permission for 'other' for all files/directories named 'rc.conf' under current directory tree
find . -name "rc.conf" -exec chmod o+r '{}' \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add read permission for 'other' for all files/directories named 'rc.conf' under current directory tree ### Response: find . -name "rc.conf" -exec chmod o+r '{}' \;
Add the .abc suffix to the names of all *.txt regular files in the current directory tree
find . -type f -iname '*.txt' -print0 | xargs -0 mv {} {}.abc
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add the .abc suffix to the names of all *.txt regular files in the current directory tree ### Response: find . -type f -iname '*.txt' -print0 | xargs -0 mv {} {}.abc
Add the execute and read permission for all and the write permission for the user to the dir_data directory and all of its sub-directories.
find ~/dir_data -type d -exec chmod a+xr,u+w {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add the execute and read permission for all and the write permission for the user to the dir_data directory and all of its sub-directories. ### Response: find ~/dir_data -type d -exec chmod a+xr,u+w {} \;
Add variable 'v' with value '5' to a temporary environment, list this environment using 'less' to interactively view it.
v=5 env|less
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add variable 'v' with value '5' to a temporary environment, list this environment using 'less' to interactively view it. ### Response: v=5 env|less
Add variable TESTVAR with value "bbb" to a temporary environment, and search for TESTVAR in all variables and their values in the resulting environment.
TESTVAR=bbb env | fgrep TESTVAR
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Add variable TESTVAR with value "bbb" to a temporary environment, and search for TESTVAR in all variables and their values in the resulting environment. ### Response: TESTVAR=bbb env | fgrep TESTVAR
Adds %Pathname% to the dirs stack (Windows format).
pushd %Pathname%
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Adds %Pathname% to the dirs stack (Windows format). ### Response: pushd %Pathname%
Adjust the timestamp of 'filename' by subtracting 2 hours from it.
touch -d "$(date -r filename) - 2 hours" filename
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Adjust the timestamp of 'filename' by subtracting 2 hours from it. ### Response: touch -d "$(date -r filename) - 2 hours" filename
Adjust the timestamp of file $filename by subtracting 2 hours from it
touch -d "$(date -r "$filename") - 2 hours" "$filename"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Adjust the timestamp of file $filename by subtracting 2 hours from it ### Response: touch -d "$(date -r "$filename") - 2 hours" "$filename"
Allow all users to execute "myscript.sh"
chmod a+x myscript.sh
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Allow all users to execute "myscript.sh" ### Response: chmod a+x myscript.sh
Allow all users to execute '$pathToShell"myShell.sh"'
chmod a+x $pathToShell"myShell.sh"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Allow all users to execute '$pathToShell"myShell.sh"' ### Response: chmod a+x $pathToShell"myShell.sh"
Allow anyone to run command "Xvfb" as the owner of "Xvfb"
sudo chmod u+s `which Xvfb`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Allow anyone to run command "Xvfb" as the owner of "Xvfb" ### Response: sudo chmod u+s `which Xvfb`
Answer "n" to any prompts in the interactive recursive removal of "dir1", "dir2", and "dir3"
yes n | rm -ir dir1 dir2 dir3
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Answer "n" to any prompts in the interactive recursive removal of "dir1", "dir2", and "dir3" ### Response: yes n | rm -ir dir1 dir2 dir3
Answer "y" to all "Are you sure?" prompts from command "cp * /tmp"
yes | cp * /tmp
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Answer "y" to all "Are you sure?" prompts from command "cp * /tmp" ### Response: yes | cp * /tmp
Answer "y" to all prompts of "rm -rf foo"
yes | rm -ri foo
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Answer "y" to all prompts of "rm -rf foo" ### Response: yes | rm -ri foo
Answer "y" to any prompts in the interactive recursive removal of "dir1", "dir2", and "dir3"
yes y | rm -ir dir1 dir2 dir3
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Answer "y" to any prompts in the interactive recursive removal of "dir1", "dir2", and "dir3" ### Response: yes y | rm -ir dir1 dir2 dir3
Append "& Bytes" to the end of every line in "$TEMPFILE" and format the result as a table
sed 's/.*/& Bytes/' "$TEMPFILE" | column -t
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append "& Bytes" to the end of every line in "$TEMPFILE" and format the result as a table ### Response: sed 's/.*/& Bytes/' "$TEMPFILE" | column -t
Append ".txt" to all filenames in the current directory tree
find -type f | xargs -I {} mv {} {}.txt
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append ".txt" to all filenames in the current directory tree ### Response: find -type f | xargs -I {} mv {} {}.txt
Append "<br/>" to the end of each line in "1\n2\n3"
echo -e "1\n2\n3" | sed 's/.*$/&<br\/>/'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append "<br/>" to the end of each line in "1\n2\n3" ### Response: echo -e "1\n2\n3" | sed 's/.*$/&<br\/>/'
Append "\r" on each line of file "input" and display the printable characters
sed 's/$/\r/g' input |od -c
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append "\r" on each line of file "input" and display the printable characters ### Response: sed 's/$/\r/g' input |od -c
Append "foo" and "bar" column in file "file" with values dependent on the current table contents
awk 'NR==1 {print $0, "foo", "bar"; next} {print $0, ($2=="x"?"-":"x"), ($4=="x"?"-":"x")}' file | column -t
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append "foo" and "bar" column in file "file" with values dependent on the current table contents ### Response: awk 'NR==1 {print $0, "foo", "bar"; next} {print $0, ($2=="x"?"-":"x"), ($4=="x"?"-":"x")}' file | column -t
Append *.java files from the current directory tree to tar archive `myfile.tar'
find . -type f -name "*.java" | xargs tar rvf myfile.tar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append *.java files from the current directory tree to tar archive `myfile.tar' ### Response: find . -type f -name "*.java" | xargs tar rvf myfile.tar
Append all *.mp3 files modified within the last 180 days to tar archive `music.tar'
find . -name -type f '*.mp3' -mtime -180 -print0 | xargs -0 tar rvf music.tar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append all *.mp3 files modified within the last 180 days to tar archive `music.tar' ### Response: find . -name -type f '*.mp3' -mtime -180 -print0 | xargs -0 tar rvf music.tar
Append all PNG and JPG files to tar archive 'images.tar'
find . \( -iname "*.png" -o -iname "*.jpg" \) -print -exec tar -rf images.tar {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append all PNG and JPG files to tar archive 'images.tar' ### Response: find . \( -iname "*.png" -o -iname "*.jpg" \) -print -exec tar -rf images.tar {} \;
Append all regular files modified in the last 24 hours to the "$archive.tar" tar archive
find . -mtime -1 -type f -exec tar rvf "$archive.tar" '{}' \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append all regular files modified in the last 24 hours to the "$archive.tar" tar archive ### Response: find . -mtime -1 -type f -exec tar rvf "$archive.tar" '{}' \;
Append all regular files modified in the last 24 hours to the "$archive.tar" tar archive
find . -mtime -1 -type f -print0 | xargs -0 tar rvf "$archive.tar"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append all regular files modified in the last 24 hours to the "$archive.tar" tar archive ### Response: find . -mtime -1 -type f -print0 | xargs -0 tar rvf "$archive.tar"
Append history lines from this session to the history list
history -a
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append history lines from this session to the history list ### Response: history -a
Append the contents of ".cwdhist" file to the current in-memory history list
history -r .cwdhist
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append the contents of ".cwdhist" file to the current in-memory history list ### Response: history -r .cwdhist
Append the contents of "file.txt" to the current in-memory history list
history -r file.txt
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append the contents of "file.txt" to the current in-memory history list ### Response: history -r file.txt
Append the current date in '%Y%m%d_%H%M' format with the basename of $0 and save it to variable 'LOGNAME'
LOGNAME="`basename "$0"`_`date "+%Y%m%d_%H%M"`"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append the current date in '%Y%m%d_%H%M' format with the basename of $0 and save it to variable 'LOGNAME' ### Response: LOGNAME="`basename "$0"`_`date "+%Y%m%d_%H%M"`"
Append the current date in '%d%m%Y-%H-%M' format, '_' and the current username, then save it in 'name' variable
name="$(date +'%d%m%Y-%H-%M')_$(whoami)"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append the current date in '%d%m%Y-%H-%M' format, '_' and the current username, then save it in 'name' variable ### Response: name="$(date +'%d%m%Y-%H-%M')_$(whoami)"
Append the current date to variable 'LBUFFER'
LBUFFER+="$(date)"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append the current date to variable 'LBUFFER' ### Response: LBUFFER+="$(date)"
Append the date and command ran to "/tmp/trace" after every command
PROMPT_COMMAND='echo "$(date +"%Y/%m/%d (%H:%M)") $(history 1 |cut -c 7-)" >> /tmp/trace'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append the date and command ran to "/tmp/trace" after every command ### Response: PROMPT_COMMAND='echo "$(date +"%Y/%m/%d (%H:%M)") $(history 1 |cut -c 7-)" >> /tmp/trace'
Append the last modification time of file $arg as the seconds since epoch with a preceding space to the variable 'KEY'
KEY+=`date -r "$arg" +\ %s`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append the last modification time of file $arg as the seconds since epoch with a preceding space to the variable 'KEY' ### Response: KEY+=`date -r "$arg" +\ %s`
Append the parent directory name with a space in all 'text.txt' files in all sub directories of current directory
find . -name text.txt | sed 's|.*/\(.*\)/.*|sed -i "s@^@\1 @" & |' | sh
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Append the parent directory name with a space in all 'text.txt' files in all sub directories of current directory ### Response: find . -name text.txt | sed 's|.*/\(.*\)/.*|sed -i "s@^@\1 @" & |' | sh
Archive "./dir" to "user@host:/path" via ssh on port 2222 and display progress
rsync -rvz -e 'ssh -p 2222' --progress ./dir user@host:/path
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "./dir" to "user@host:/path" via ssh on port 2222 and display progress ### Response: rsync -rvz -e 'ssh -p 2222' --progress ./dir user@host:/path
Archive "./htmlguide" to "~/src/" with resolved symbolic links and delete any extraneous files from "~/src/" not found in "./htmlguide"
rsync -av --copy-dirlinks --delete ../htmlguide ~/src/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "./htmlguide" to "~/src/" with resolved symbolic links and delete any extraneous files from "~/src/" not found in "./htmlguide" ### Response: rsync -av --copy-dirlinks --delete ../htmlguide ~/src/
Archive "/home/abc/*" to "/mnt/windowsabc" with human readable output
rsync -avh /home/abc/* /mnt/windowsabc
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/home/abc/*" to "/mnt/windowsabc" with human readable output ### Response: rsync -avh /home/abc/* /mnt/windowsabc
Archive "/home/path" to "path" on host "server" showing progress and statistics and remove files in the destination not found in the source
rsync -a --stats --progress --delete /home/path server:path
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/home/path" to "path" on host "server" showing progress and statistics and remove files in the destination not found in the source ### Response: rsync -a --stats --progress --delete /home/path server:path
Archive "/home/user1" to "wobgalaxy02:/home/user1" excluding hidden files
rsync -av /home/user1 wobgalaxy02:/home/user1
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/home/user1" to "wobgalaxy02:/home/user1" excluding hidden files ### Response: rsync -av /home/user1 wobgalaxy02:/home/user1
Archive "/local/path/some_file" to "/some/path" on host "server.com" authenticating as user "usr", compress data during transmission, show progress details.
rsync -avz --progress local/path/some_file usr@server.com:"/some/path/"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/local/path/some_file" to "/some/path" on host "server.com" authenticating as user "usr", compress data during transmission, show progress details. ### Response: rsync -avz --progress local/path/some_file usr@server.com:"/some/path/"
Archive "/media/10001/music/" on host "server" to local directory "/media/incoming/music/" and skip files that are newer in the destination, delete any files in the destination not in the source, and compress data during transmission
rsync -avzru --delete-excluded server:/media/10001/music/ /media/Incoming/music/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/media/10001/music/" on host "server" to local directory "/media/incoming/music/" and skip files that are newer in the destination, delete any files in the destination not in the source, and compress data during transmission ### Response: rsync -avzru --delete-excluded server:/media/10001/music/ /media/Incoming/music/
Archive "/media/Incoming/music/" to "/media/10001/music/" on host "server" and skip files that are newer in the destination, delete any files in the destination not in the source, and compress data during transmission
rsync -avzru --delete-excluded /media/Incoming/music/ server:/media/10001/music/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/media/Incoming/music/" to "/media/10001/music/" on host "server" and skip files that are newer in the destination, delete any files in the destination not in the source, and compress data during transmission ### Response: rsync -avzru --delete-excluded /media/Incoming/music/ server:/media/10001/music/
Archive "/my/dir" on host "server" as user "user" to the current local directory excluding files ending in ".svn"
rsync -av --exclude '*.svn' user@server:/my/dir .
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/my/dir" on host "server" as user "user" to the current local directory excluding files ending in ".svn" ### Response: rsync -av --exclude '*.svn' user@server:/my/dir .
Archive "/path/to/application.ini" on host "source_host" to current directory.
rsync -avv source_host:path/to/application.ini ./application.ini
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/application.ini" on host "source_host" to current directory. ### Response: rsync -avv source_host:path/to/application.ini ./application.ini
Archive "/path/to/copy" on host "remote.host" as user "user" to "/path/to/local/storage" updating files with different checksums, showing human readable progress and statistics, and compressing data during transmission
rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/copy" on host "remote.host" as user "user" to "/path/to/local/storage" updating files with different checksums, showing human readable progress and statistics, and compressing data during transmission ### Response: rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage
Archive "/path/to/copy" to "/path/to/local/storage" on host "host.remoted.from" as user "user" updating files with different checksums, showing human readable progress and statistics, and compressing data during transmission
rsync -chavzP --stats /path/to/copy user@host.remoted.from:/path/to/local/storage
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/copy" to "/path/to/local/storage" on host "host.remoted.from" as user "user" updating files with different checksums, showing human readable progress and statistics, and compressing data during transmission ### Response: rsync -chavzP --stats /path/to/copy user@host.remoted.from:/path/to/local/storage
Archive "/path/to/files" on host "remotemachine" authentifying as user "user" and compressing data during transmission, copy symlinks as symlinks.
rsync -avlzp user@remotemachine:/path/to/files /path/to/this/folder
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/files" on host "remotemachine" authentifying as user "user" and compressing data during transmission, copy symlinks as symlinks. ### Response: rsync -avlzp user@remotemachine:/path/to/files /path/to/this/folder
Archive "/path/to/files" to "/path" on host "user@targethost" with elevated permission on the remote host
rsync -av --rsync-path="sudo rsync" /path/to/files user@targethost:/path
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/files" to "/path" on host "user@targethost" with elevated permission on the remote host ### Response: rsync -av --rsync-path="sudo rsync" /path/to/files user@targethost:/path
Archive "/path/to/files" to "user@targethost:/path"
rsync -av /path/to/files user@targethost:/path
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/files" to "user@targethost:/path" ### Response: rsync -av /path/to/files user@targethost:/path
Archive "/path/to/files/source" to "user@remoteip:/path/to/files/destination" via ssh on port 2121
rsync -azP -e "ssh -p 2121" /path/to/files/source user@remoteip:/path/to/files/destination
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/files/source" to "user@remoteip:/path/to/files/destination" via ssh on port 2121 ### Response: rsync -azP -e "ssh -p 2121" /path/to/files/source user@remoteip:/path/to/files/destination
Archive "/path/to/sfolder" to "name@remote.server:/path/to/remote/dfolder" compressing the data during transmission
rsync -avlzp /path/to/sfolder name@remote.server:/path/to/remote/dfolder
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/sfolder" to "name@remote.server:/path/to/remote/dfolder" compressing the data during transmission ### Response: rsync -avlzp /path/to/sfolder name@remote.server:/path/to/remote/dfolder
Archive "/path/to/sfolder" to "name@remote.server:/path/to/remote/dfolder" preserving hard links and compressing the data during transmission
rsync -aHvz /path/to/sfolder name@remote.server:/path/to/remote/dfolder
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/sfolder" to "name@remote.server:/path/to/remote/dfolder" preserving hard links and compressing the data during transmission ### Response: rsync -aHvz /path/to/sfolder name@remote.server:/path/to/remote/dfolder
Archive "/path/to/sfolder/" to "name@remote.server:/path/to/remote/dfolder" preserving hard links and compressing the data during transmission
rsync -aHvz /path/to/sfolder/ name@remote.server:/path/to/remote/dfolder
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/path/to/sfolder/" to "name@remote.server:/path/to/remote/dfolder" preserving hard links and compressing the data during transmission ### Response: rsync -aHvz /path/to/sfolder/ name@remote.server:/path/to/remote/dfolder
Archive "/source" and all files under "folder/" to "/dstfolder/" on host "remoteserver" as user "user" without copying files that already exist
rsync -avz --ignore-existing /source folder/* user@remoteserver:/dstfolder/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/source" and all files under "folder/" to "/dstfolder/" on host "remoteserver" as user "user" without copying files that already exist ### Response: rsync -avz --ignore-existing /source folder/* user@remoteserver:/dstfolder/
Archive "/source/backup" to "/destination" with compression during transfer
rsync -ravz /source/backup /destination
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/source/backup" to "/destination" with compression during transfer ### Response: rsync -ravz /source/backup /destination
Archive "/top/a/b/c/d" to host "remote" using relative path names
rsync -a --relative /top/a/b/c/d remote:/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/top/a/b/c/d" to host "remote" using relative path names ### Response: rsync -a --relative /top/a/b/c/d remote:/
Archive "/usr/local/" to "/BackUp/usr/local/" on host "XXX.XXX.XXX.XXX" via ssh and show progress
rsync --progress -avhe ssh /usr/local/ XXX.XXX.XXX.XXX:/BackUp/usr/local/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/usr/local/" to "/BackUp/usr/local/" on host "XXX.XXX.XXX.XXX" via ssh and show progress ### Response: rsync --progress -avhe ssh /usr/local/ XXX.XXX.XXX.XXX:/BackUp/usr/local/
Archive "/var/www/test/" to "/var/www/test" on host "231.210.24.48" as user "ubuntu" via ssh using identity file "/home/test/pkey_new.pem"
rsync -rave "ssh -i /home/test/pkey_new.pem" /var/www/test/ ubuntu@231.210.24.48:/var/www/test
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Archive "/var/www/test/" to "/var/www/test" on host "231.210.24.48" as user "ubuntu" via ssh using identity file "/home/test/pkey_new.pem" ### Response: rsync -rave "ssh -i /home/test/pkey_new.pem" /var/www/test/ ubuntu@231.210.24.48:/var/www/test

No dataset card yet

New: Create and edit this dataset card directly on the website!

Contribute a Dataset Card
Downloads last month
33
Add dataset card