Instruction
stringlengths
13
387
Response
stringlengths
1
532
Text
stringlengths
158
1.06k
split file /usr/bin/firefox into pieces per 1000 lines
split -n 1000 /usr/bin/firefox
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split file /usr/bin/firefox into pieces per 1000 lines ### Response: split -n 1000 /usr/bin/firefox
split file /usr/bin/gcc into pieces per 100000 lines
split -n 100000 /usr/bin/gcc
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split file /usr/bin/gcc into pieces per 100000 lines ### Response: split -n 100000 /usr/bin/gcc
split file abc.txt into pieces per 1500000000 bytes named as "abc.NNN"
split --bytes=1500000000 abc.txt abc
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split file abc.txt into pieces per 1500000000 bytes named as "abc.NNN" ### Response: split --bytes=1500000000 abc.txt abc
split file data.csv into pieces per 100 lines
split -l 100 date.csv
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split file data.csv into pieces per 100 lines ### Response: split -l 100 date.csv
split file input.txt into pieces per 1 line named output.NNNNN
split --lines=1 --suffix-length=5 input.txt output.
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split file input.txt into pieces per 1 line named output.NNNNN ### Response: split --lines=1 --suffix-length=5 input.txt output.
split file t.txt into pieces per 30000000 lines named as "t.NN" with numeric suffix
split --lines=30000000 --numeric-suffixes --suffix-length=2 t.txt t
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split file t.txt into pieces per 30000000 lines named as "t.NN" with numeric suffix ### Response: split --lines=30000000 --numeric-suffixes --suffix-length=2 t.txt t
split listing of the current directory into pieces per 500 lines named "outputXYZNNN"
ls | split -l 500 - outputXYZ.
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split listing of the current directory into pieces per 500 lines named "outputXYZNNN" ### Response: ls | split -l 500 - outputXYZ.
split processed content of the file inout_file into pieces per 2000000 named as "out-prefix-NNN"
sed 's/\(.....\)\(.....\)/\1\n\2/' input_file | split -l 2000000 - out-prefix-
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split processed content of the file inout_file into pieces per 2000000 named as "out-prefix-NNN" ### Response: sed 's/\(.....\)\(.....\)/\1\n\2/' input_file | split -l 2000000 - out-prefix-
split processed content of the file temp into pieces per 1 line named "tempNNN" with numeric suffix
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: split processed content of the file temp into pieces per 1 line named "tempNNN" with numeric suffix ### Response: sed 's/3d3d/\n&/2g' temp | split -dl1 - temp
split result of the command "tar [your params]" into pieces per 500 mb named as "output_prefixNNN"
tar [your params] |split -b 500m - output_prefix
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split result of the command "tar [your params]" into pieces per 500 mb named as "output_prefixNNN" ### Response: tar [your params] |split -b 500m - output_prefix
split the file "/path/to/large/file" into pieces per 50000 lines named as /path/to/output/file/prefixNNN
split --lines=50000 /path/to/large/file /path/to/output/file/prefix
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split the file "/path/to/large/file" into pieces per 50000 lines named as /path/to/output/file/prefixNNN ### Response: split --lines=50000 /path/to/large/file /path/to/output/file/prefix
split the file "file" into pieces per 2 lines
split -n2 infile
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split the file "file" into pieces per 2 lines ### Response: split -n2 infile
split the file data.csv into pieces per 100 mb named as data.tsv.NNN with digital prefixes
split -C 100m -d data.tsv data.tsv.
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split the file data.csv into pieces per 100 mb named as data.tsv.NNN with digital prefixes ### Response: split -C 100m -d data.tsv data.tsv.
split the file hugefile.txt into pieces per 100000 lines named as partNNN with digital prefixes
split -a4 -d -l100000 hugefile.txt part.
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split the file hugefile.txt into pieces per 100000 lines named as partNNN with digital prefixes ### Response: split -a4 -d -l100000 hugefile.txt part.
split the first 100 lines of the file "datafile" per lines with size 1700 bytes
sed 100q datafile | split -C 1700 -
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split the first 100 lines of the file "datafile" per lines with size 1700 bytes ### Response: sed 100q datafile | split -C 1700 -
split the result of command "ping -c 25 google.com | tee " into pieces per 100000 bytes named as "/home/user/myLogFile.logNNN"
ping -c 25 google.com | tee >(split -d -b 100000 - /home/user/myLogFile.log)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: split the result of command "ping -c 25 google.com | tee " into pieces per 100000 bytes named as "/home/user/myLogFile.logNNN" ### Response: ping -c 25 google.com | tee >(split -d -b 100000 - /home/user/myLogFile.log)
ssh into "hostname" as user "buck"
ssh -l buck hostname
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: ssh into "hostname" as user "buck" ### Response: ssh -l buck hostname
ssh into "hostname" as user "buck"
ssh buck@hostname
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: ssh into "hostname" as user "buck" ### Response: ssh buck@hostname
ssh into "ssh.myhost.net" as user "myusername" and run command "mkdir -p $2"
ssh myusername@ssh.myhost.net "mkdir -p $2"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: ssh into "ssh.myhost.net" as user "myusername" and run command "mkdir -p $2" ### Response: ssh myusername@ssh.myhost.net "mkdir -p $2"
ssh into default vagrant host without running "vagrant ssh" by passing the configuration parameters vagrant uses for ssh
ssh vagrant@127.0.0.1 -p 2222 -o Compression=yes -o DSAAuthentication=yes -o LogLevel=FATAL -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i ~/.vagrant.d/less_insecure_private_key -o ForwardAgent=yes
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: ssh into default vagrant host without running "vagrant ssh" by passing the configuration parameters vagrant uses for ssh ### Response: ssh vagrant@127.0.0.1 -p 2222 -o Compression=yes -o DSAAuthentication=yes -o LogLevel=FATAL -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i ~/.vagrant.d/less_insecure_private_key -o ForwardAgent=yes
ssh into localhost on port 10022
ssh -p 10022 localhost
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: ssh into localhost on port 10022 ### Response: ssh -p 10022 localhost
ssh into localhost on port 4444
ssh -p 4444 localhost
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: ssh into localhost on port 4444 ### Response: ssh -p 4444 localhost
start 2 sleep processes in the background
sleep 100 | sleep 200 &
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: start 2 sleep processes in the background ### Response: sleep 100 | sleep 200 &
start from current directory, skip the directory src/emacs and all files and directories under it, and print the names of the other files found
find . -wholename './src/emacs' -prune -o -print
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: start from current directory, skip the directory src/emacs and all files and directories under it, and print the names of the other files found ### Response: find . -wholename './src/emacs' -prune -o -print
start from current directory, skip the directory src/emacs and print it then skip all files and directories under it, and print the names of the other files found
find . -wholename './src/emacs' -prune , -print
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: start from current directory, skip the directory src/emacs and print it then skip all files and directories under it, and print the names of the other files found ### Response: find . -wholename './src/emacs' -prune , -print
start from current directory, skip the directory src/emacs and print it then skip all files and directories under it, and print the names of the other files found
find . -wholename './src/emacs' -prune -print -o -print
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: start from current directory, skip the directory src/emacs and print it then skip all files and directories under it, and print the names of the other files found ### Response: find . -wholename './src/emacs' -prune -print -o -print
switch to user username
su username
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: switch to user username ### Response: su username
tar all files in the current folder and ask for user confirmation before creating the tar ball
find . -ok tar rvf backup {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: tar all files in the current folder and ask for user confirmation before creating the tar ball ### Response: find . -ok tar rvf backup {} \;
tar all the regular java files to myfile.tar
find . -type f -name "*.java" | xargs tar cvf myfile.tar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: tar all the regular java files to myfile.tar ### Response: find . -type f -name "*.java" | xargs tar cvf myfile.tar
test if the 2nd column in file A is in the reverse order of the second column of file B
diff --brief <(awk '{print $2}' A) <(tac B | awk '{print $2}')
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: test if the 2nd column in file A is in the reverse order of the second column of file B ### Response: diff --brief <(awk '{print $2}' A) <(tac B | awk '{print $2}')
this find command Substitute space with underscore in the file name replaces space in all the *.mp3 files with _
find . -type f -iname '*.mp3' -exec rename '/ /_/' {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: this find command Substitute space with underscore in the file name replaces space in all the *.mp3 files with _ ### Response: find . -type f -iname '*.mp3' -exec rename '/ /_/' {} \;
unsafed rm all file which name start with '#'
find / -name '#*' -atime +7 -print | xargs rm
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: unsafed rm all file which name start with '#' ### Response: find / -name '#*' -atime +7 -print | xargs rm
unzip and search for a word in all the jar files in the current folder and display the matched file name
find . -iname '*.jar' -printf "unzip -c %p | grep -q '<stringWithOrWithoutSpacesToFind>' && echo %p\n" | sh
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: unzip and search for a word in all the jar files in the current folder and display the matched file name ### Response: find . -iname '*.jar' -printf "unzip -c %p | grep -q '<stringWithOrWithoutSpacesToFind>' && echo %p\n" | sh
update the permission of all the files in the folder /u/netinst to 500
find /u/netinst -print | xargs chmod 500
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: update the permission of all the files in the folder /u/netinst to 500 ### Response: find /u/netinst -print | xargs chmod 500
update the permission of all the php files in current directory and save the output to a file
find . -name '*.php' -exec chmod 755 {} \; | tee logfile.txt
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: update the permission of all the php files in current directory and save the output to a file ### Response: find . -name '*.php' -exec chmod 755 {} \; | tee logfile.txt
update the permissions of the directories in the folder folder_name to 775
find folder_name -type d -exec chmod 775 ‘{}’ \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: update the permissions of the directories in the folder folder_name to 775 ### Response: find folder_name -type d -exec chmod 775 ‘{}’ \;
use find -exec with multiple commands
find . -name "*.txt" -exec echo {} \; -exec grep banana {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: use find -exec with multiple commands ### Response: find . -name "*.txt" -exec echo {} \; -exec grep banana {} \;
use find -exec with multiple commands regardless of their success or failure
find . -name "*.txt" \( -exec echo {} \; -o -exec true \; \) -exec grep banana {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: use find -exec with multiple commands regardless of their success or failure ### Response: find . -name "*.txt" \( -exec echo {} \; -o -exec true \; \) -exec grep banana {} \;
use find command to search for .png and .jpg files
find ./ -type f \( -iname \*.jpg -o -iname \*.png \)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: use find command to search for .png and .jpg files ### Response: find ./ -type f \( -iname \*.jpg -o -iname \*.png \)
use regex with find command
find . * | grep -P "[a-f0-9\-]{36}\.jpg"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: use regex with find command ### Response: find . * | grep -P "[a-f0-9\-]{36}\.jpg"
use regex with find command
find . -regextype posix-egrep -regex '\./[a-f0-9\-]{36}\.jpg'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: use regex with find command ### Response: find . -regextype posix-egrep -regex '\./[a-f0-9\-]{36}\.jpg'
use regex with find command
find . -regextype sed -regex ".*/[a-f0-9\-]\{36\}\.jpg"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: use regex with find command ### Response: find . -regextype sed -regex ".*/[a-f0-9\-]\{36\}\.jpg"
using exec in find command to dispaly the searched files
find . ... -exec cat {} \; -exec echo \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: using exec in find command to dispaly the searched files ### Response: find . ... -exec cat {} \; -exec echo \;
verbosely create intermediate directoriy tmp as required and directory boostinst
mkdir -pv /tmp/boostinst
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: verbosely create intermediate directoriy tmp as required and directory boostinst ### Response: mkdir -pv /tmp/boostinst
view the manual page of find
man find
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: view the manual page of find ### Response: man find
wait 2 seconds and then print "hello"
echo "hello `sleep 2 &`"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: wait 2 seconds and then print "hello" ### Response: echo "hello `sleep 2 &`"
when using vi-insert keymap bind command "\C-v{}\ei" to key "{"
bind -m vi-insert '"{" "\C-v{}\ei"'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: when using vi-insert keymap bind command "\C-v{}\ei" to key "{" ### Response: bind -m vi-insert '"{" "\C-v{}\ei"'