Instruction
stringlengths
13
387
Response
stringlengths
1
532
Text
stringlengths
158
1.06k
Check if current system is running in 64-bit addressing.
uname -m | grep '64'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check if current system is running in 64-bit addressing. ### Response: uname -m | grep '64'
Check if directory $some_dir is empty
find "`echo "$some_dir"`" -maxdepth 0 -empty
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check if directory $some_dir is empty ### Response: find "`echo "$some_dir"`" -maxdepth 0 -empty
Check if process ID 1 exists (init or systemd) and current user has permission to send it signals.
kill -0 1
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check if process ID 1 exists (init or systemd) and current user has permission to send it signals. ### Response: kill -0 1
Check if the $somedir directory is empty
find "$somedir" -maxdepth 0 -empty -exec echo {} is empty. \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check if the $somedir directory is empty ### Response: find "$somedir" -maxdepth 0 -empty -exec echo {} is empty. \;
Check if the contents of file "subset" is a subset of file "set"
comm -23 <(sort subset | uniq) <(sort set | uniq) | head -1
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check if the contents of file "subset" is a subset of file "set" ### Response: comm -23 <(sort subset | uniq) <(sort set | uniq) | head -1
Check if the directory tree whose name is given as variable $somedir contains no regular files
find "$somedir" -type f -exec echo Found unexpected file {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check if the directory tree whose name is given as variable $somedir contains no regular files ### Response: find "$somedir" -type f -exec echo Found unexpected file {} \;
Check if the file "somelink" links to exists
ls `readlink somelink`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check if the file "somelink" links to exists ### Response: ls `readlink somelink`
Check md5sum of directory /path against the checksum saved in file 'file'
du -csxb /path | md5sum -c file
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check md5sum of directory /path against the checksum saved in file 'file' ### Response: du -csxb /path | md5sum -c file
Check that the master SSH control socket "my-ctrl-socket" to "jm@sampledomain.com" is running
ssh -S my-ctrl-socket -O check jm@sampledomain.com
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check that the master SSH control socket "my-ctrl-socket" to "jm@sampledomain.com" is running ### Response: ssh -S my-ctrl-socket -O check jm@sampledomain.com
Check that the master ssh connection "officefirewall" is running
ssh -O check officefirewall
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check that the master ssh connection "officefirewall" is running ### Response: ssh -O check officefirewall
Check the environment variables generated by switching to the root account.
sudo env
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check the environment variables generated by switching to the root account. ### Response: sudo env
Check whether "$path_in_question" is a mount point
df $path_in_question | grep " $path_in_question$"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check whether "$path_in_question" is a mount point ### Response: df $path_in_question | grep " $path_in_question$"
Check whether "/full/path" is a mount point with no output and using the exit code
df /full/path | grep -q /full/path
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check whether "/full/path" is a mount point with no output and using the exit code ### Response: df /full/path | grep -q /full/path
Check whether current terminal is opened in a screen session.
pstree --show-parents -p $$ | head -n 1 | sed 's/\(.*\)+.*/\1/' | grep screen | wc -l
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Check whether current terminal is opened in a screen session. ### Response: pstree --show-parents -p $$ | head -n 1 | sed 's/\(.*\)+.*/\1/' | grep screen | wc -l
Checks compressed file integrity.
bzip2 -t file.bz2
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Checks compressed file integrity. ### Response: bzip2 -t file.bz2
Checks that 'monit' user is in 'www-data' group.
groups monit |grep www-data
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Checks that 'monit' user is in 'www-data' group. ### Response: groups monit |grep www-data
Clean directories and subdirectories of the temporary files generated during normal use
find . \( -name a.out -o -name '*.o' -o -name 'core' \) -exec rm {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clean directories and subdirectories of the temporary files generated during normal use ### Response: find . \( -name a.out -o -name '*.o' -o -name 'core' \) -exec rm {} \;
Clean the current directory from all subversion directories recursively
find . -type d -name ".svn" -print | xargs rm -rf
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clean the current directory from all subversion directories recursively ### Response: find . -type d -name ".svn" -print | xargs rm -rf
Clean up all zombie processes by instantly killing their parent process with SIGKILL signal.
kill -9 $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }')
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clean up all zombie processes by instantly killing their parent process with SIGKILL signal. ### Response: kill -9 $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }')
Clean up all zombie processes by sending SIGTERM signal to their parent process, which requests them to terminate.
kill $(ps -A -ostat,ppid | awk '/[zZ]/{print $2}')
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clean up all zombie processes by sending SIGTERM signal to their parent process, which requests them to terminate. ### Response: kill $(ps -A -ostat,ppid | awk '/[zZ]/{print $2}')
Clear the in-memory history
history -c
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clear the in-memory history ### Response: history -c
Clear the in-memory history and read from the current history file
history -cr
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clear the in-memory history and read from the current history file ### Response: history -cr
Clear the terminal's search history
history -c
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clear the terminal's search history ### Response: history -c
Clears terminal screen.
echo `clear`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clears terminal screen. ### Response: echo `clear`
Clears the terminal screen.
clear
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Clears the terminal screen. ### Response: clear
Close the master SSH control socket "my-ctrl-socket" to "jm@sampledomain.com"
ssh -S my-ctrl-socket -O exit jm@sampledomain.com
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Close the master SSH control socket "my-ctrl-socket" to "jm@sampledomain.com" ### Response: ssh -S my-ctrl-socket -O exit jm@sampledomain.com
Collapse double slashes in variable "dir" into a single one.
dir="`echo $dir | sed s,//,/,g`"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Collapse double slashes in variable "dir" into a single one. ### Response: dir="`echo $dir | sed s,//,/,g`"
Combine every two lines of standard input
paste -d "" - -
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Combine every two lines of standard input ### Response: paste -d "" - -
Compare "$source_file" and "$dest_file" line by line
diff "$source_file" "$dest_file"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare "$source_file" and "$dest_file" line by line ### Response: diff "$source_file" "$dest_file"
Compare "current.log" and "previous.log" line by line and print lines containing regex pattern ">\|<"
diff current.log previous.log | grep ">\|<" #comparring users lists
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare "current.log" and "previous.log" line by line and print lines containing regex pattern ">\|<" ### Response: diff current.log previous.log | grep ">\|<" #comparring users lists
Compare "fastcgi_params" and "fastcgi.conf" line by line, output 3 lines of unified context, and print the C function the change is in
diff -up fastcgi_params fastcgi.conf
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare "fastcgi_params" and "fastcgi.conf" line by line, output 3 lines of unified context, and print the C function the change is in ### Response: diff -up fastcgi_params fastcgi.conf
Compare "file1" and "file2" line by line with 3 lines of unified context
diff -u file1 file2
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare "file1" and "file2" line by line with 3 lines of unified context ### Response: diff -u file1 file2
Compare *.csv files in the current directory tree with their analogs stored in /some/other/path/
find . -name "*.csv" -exec diff {} /some/other/path/{} ";" -print
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare *.csv files in the current directory tree with their analogs stored in /some/other/path/ ### Response: find . -name "*.csv" -exec diff {} /some/other/path/{} ";" -print
Compare *.csv files in the current directory tree with their analogs stored in /some/other/path/ prompting before running `diff'
find . -okdir diff {} /some/other/path/{} ";"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare *.csv files in the current directory tree with their analogs stored in /some/other/path/ prompting before running `diff' ### Response: find . -okdir diff {} /some/other/path/{} ";"
Compare column 3 with column 2 of the next line in "file" and format output as a table
awk 'NR==1 { print; next } { print $0, ($1 == a && $2 == b) ? "equal" : "not_equal"; a = $1; b = $3 }' file | column -t
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare column 3 with column 2 of the next line in "file" and format output as a table ### Response: awk 'NR==1 { print; next } { print $0, ($1 == a && $2 == b) ? "equal" : "not_equal"; a = $1; b = $3 }' file | column -t
Compare each .xml file under the current directory with a file of the same name in "/destination/dir/2"
find . -name *.xml -exec diff {} /destination/dir/2/{} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare each .xml file under the current directory with a file of the same name in "/destination/dir/2" ### Response: find . -name *.xml -exec diff {} /destination/dir/2/{} \;
Compare each file in "repos1/" and "repos2/", treat absent files as empty, ignore differences in whitespace and tab expansions, and print 3 lines of unified context
diff -ENwbur repos1/ repos2/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare each file in "repos1/" and "repos2/", treat absent files as empty, ignore differences in whitespace and tab expansions, and print 3 lines of unified context ### Response: diff -ENwbur repos1/ repos2/
Compare files "A1" and "A2" with 3 lines of unified context and print lines beginning with "+"
diff -u A1 A2 | grep -E "^\+"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare files "A1" and "A2" with 3 lines of unified context and print lines beginning with "+" ### Response: diff -u A1 A2 | grep -E "^\+"
Compare files 'file1' and 'file2' and print in three columns strings unique for first file, second file, and common ones
comm abc def
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare files 'file1' and 'file2' and print in three columns strings unique for first file, second file, and common ones ### Response: comm abc def
Compare files in "/tmp/dir1" and "/tmp/dir2", treat absent files as empty and all files as text, and print 3 lines of unified context
diff -Naur dir1/ dir2
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare files in "/tmp/dir1" and "/tmp/dir2", treat absent files as empty and all files as text, and print 3 lines of unified context ### Response: diff -Naur dir1/ dir2
Compare files in "/tmp/dir1" and "/tmp/dir2", treating absent files as empty and all files as text
diff -Nar /tmp/dir1 /tmp/dir2/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare files in "/tmp/dir1" and "/tmp/dir2", treating absent files as empty and all files as text ### Response: diff -Nar /tmp/dir1 /tmp/dir2/
Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones
comm <(sort -n f1.txt) <(sort -n f2.txt)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones ### Response: comm <(sort -n f1.txt) <(sort -n f2.txt)
Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones
comm <(sort f1.txt) <(sort f2.txt)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones ### Response: comm <(sort f1.txt) <(sort f2.txt)
Compare text "hello" and "goodbye" line by line
diff <(echo hello) <(echo goodbye)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare text "hello" and "goodbye" line by line ### Response: diff <(echo hello) <(echo goodbye)
Compare the contents of "/bin" and "/usr/bin" line by line
diff <(ls /bin) <(ls /usr/bin)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare the contents of "/bin" and "/usr/bin" line by line ### Response: diff <(ls /bin) <(ls /usr/bin)
Compare the contents of gzip-ompressed files "file1" and "file2"
diff <(zcat file1.gz) <(zcat file2.gz)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare the contents of gzip-ompressed files "file1" and "file2" ### Response: diff <(zcat file1.gz) <(zcat file2.gz)
Compare the files in 'FOLDER1' and 'FOLDER2' and show which ones are indentical and which ones differ
find FOLDER1 -type f -print0 | xargs -0 -I % find FOLDER2 -type f -exec diff -qs --from-file="%" '{}' \+
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compare the files in 'FOLDER1' and 'FOLDER2' and show which ones are indentical and which ones differ ### Response: find FOLDER1 -type f -print0 | xargs -0 -I % find FOLDER2 -type f -exec diff -qs --from-file="%" '{}' \+
Compares two listings 'ls' and 'ls *Music*', showing only strings that unique for first listing.
comm -23 <(ls) <(ls *Music*)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compares two listings 'ls' and 'ls *Music*', showing only strings that unique for first listing. ### Response: comm -23 <(ls) <(ls *Music*)
Compose filepath as folder path where file $SRC is located, and lowercase filename of $SRC file, and save it in 'DST' variable
DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compose filepath as folder path where file $SRC is located, and lowercase filename of $SRC file, and save it in 'DST' variable ### Response: DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'`
Compose filepath as folder path where file $f is located, and lowercase filename of $f file, and save it in 'g' variable
g=`dirname "$f"`/`basename "$f" | tr '[A-Z]' '[a-z]'`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compose filepath as folder path where file $f is located, and lowercase filename of $f file, and save it in 'g' variable ### Response: g=`dirname "$f"`/`basename "$f" | tr '[A-Z]' '[a-z]'`
Composes full process tree with process id numbers, and prints only those strings that contain 'git'.
pstree -p | grep git
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Composes full process tree with process id numbers, and prints only those strings that contain 'git'. ### Response: pstree -p | grep git
Compress "archive.tar"
gzip archive.tar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress "archive.tar" ### Response: gzip archive.tar
Compress "hello world" and save to variable "hey"
hey=$(echo "hello world" | gzip -cf)
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress "hello world" and save to variable "hey" ### Response: hey=$(echo "hello world" | gzip -cf)
Compress "my_large_file" with gzip and split the result into files of size 1024 MiB with prefix "myfile_split.gz_"
gzip -c my_large_file | split -b 1024MiB - myfile_split.gz_
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress "my_large_file" with gzip and split the result into files of size 1024 MiB with prefix "myfile_split.gz_" ### Response: gzip -c my_large_file | split -b 1024MiB - myfile_split.gz_
Compress $file file using gzip
gzip "$file"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress $file file using gzip ### Response: gzip "$file"
Compress a file named '{}' in the current directory
gzip "{}"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress a file named '{}' in the current directory ### Response: gzip "{}"
Compress all ".txt" files in all sub directories with gzip
gzip */*.txt
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all ".txt" files in all sub directories with gzip ### Response: gzip */*.txt
Compress all ".txt" files in the current directory tree with gzip
find . -type f -name "*.txt" -exec gzip {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all ".txt" files in the current directory tree with gzip ### Response: find . -type f -name "*.txt" -exec gzip {} \;
Compress all *.img files using bzip2
find ./ -name "*.img" -exec bzip2 -v {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all *.img files using bzip2 ### Response: find ./ -name "*.img" -exec bzip2 -v {} \;
Compress all directories found in $LOGDIR wherein a file's data has been modified within the last 24 hours
find $LOGDIR -type d -mtime +0 -exec compress -r {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all directories found in $LOGDIR wherein a file's data has been modified within the last 24 hours ### Response: find $LOGDIR -type d -mtime +0 -exec compress -r {} \;
Compress all directories found in directory tree $LOGDIR that have been modified within the last 24 hours
find $LOGDIR -type d -mtime -1 -exec compress -r {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all directories found in directory tree $LOGDIR that have been modified within the last 24 hours ### Response: find $LOGDIR -type d -mtime -1 -exec compress -r {} \;
Compress all files in directory "$PATH_TO_LOGS" that were last modified more than "$SOME_NUMBER_OF_DAYS" days ago
find $PATH_TO_LOGS -maxdepth 1 -mtime +$SOME_NUMBER_OF_DAYS -exec gzip -N {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all files in directory "$PATH_TO_LOGS" that were last modified more than "$SOME_NUMBER_OF_DAYS" days ago ### Response: find $PATH_TO_LOGS -maxdepth 1 -mtime +$SOME_NUMBER_OF_DAYS -exec gzip -N {} \;
Compress all files in the "$FILE" directory tree that were last modified 30 days ago
find $FILE -type f -mtime 30 -exec gzip {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all files in the "$FILE" directory tree that were last modified 30 days ago ### Response: find $FILE -type f -mtime 30 -exec gzip {} \;
Compress all files in the "$FILE" directory tree that were last modified 30 days ago and have not already been compressed with gzip
find $FILE -type f -not -name '*.gz' -mtime 30 -exec gzip {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all files in the "$FILE" directory tree that were last modified 30 days ago and have not already been compressed with gzip ### Response: find $FILE -type f -not -name '*.gz' -mtime 30 -exec gzip {} \;
Compress all files under /source directory tree using gzip with best compression method
find /source -type f -print0 | xargs -0 -n 1 -P $CORES gzip -9
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all files under /source directory tree using gzip with best compression method ### Response: find /source -type f -print0 | xargs -0 -n 1 -P $CORES gzip -9
Compress all files under current directory tree with gzip
find . -type f -print0 | xargs -0r gzip
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all files under current directory tree with gzip ### Response: find . -type f -print0 | xargs -0r gzip
Compress all files with '.txt' extension under current directory
echo *.txt | xargs gzip -9
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress all files with '.txt' extension under current directory ### Response: echo *.txt | xargs gzip -9
Compress and display the gzip compression ratio of every file on the system that is greater than 100000 bytes and ends in ".log"
sudo find / -xdev -type f -size +100000 -name "*.log" -exec gzip -v {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress and display the gzip compression ratio of every file on the system that is greater than 100000 bytes and ends in ".log" ### Response: sudo find / -xdev -type f -size +100000 -name "*.log" -exec gzip -v {} \;
Compress and display the original filename of every file on the system that is greater than 100000 bytes and ends in ".log"
sudo find / -xdev -type f -size +100000 -name "*.log" -exec gzip {} \; -exec echo {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress and display the original filename of every file on the system that is greater than 100000 bytes and ends in ".log" ### Response: sudo find / -xdev -type f -size +100000 -name "*.log" -exec gzip {} \; -exec echo {} \;
Compress every file in the current directory that matches "*cache.html" and keep the original file
gzip -k *cache.html
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress every file in the current directory that matches "*cache.html" and keep the original file ### Response: gzip -k *cache.html
Compress every file in the current directory tree that matches "*cache.html" and keep the original file
find . -type f -name "*cache.html" -exec gzip -k {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress every file in the current directory tree that matches "*cache.html" and keep the original file ### Response: find . -type f -name "*cache.html" -exec gzip -k {} \;
Compress every file in the current directory tree with gzip and keep file extensions the same
find folder -type f -exec gzip -9 {} \; -exec mv {}.gz {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress every file in the current directory tree with gzip and keep file extensions the same ### Response: find folder -type f -exec gzip -9 {} \; -exec mv {}.gz {} \;
Compress files excluding *.Z files
find . \! -name "*.Z" -exec compress -f {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress files excluding *.Z files ### Response: find . \! -name "*.Z" -exec compress -f {} \;
Compress from standard input and print the byte count preceded with 'gzip.'
echo gzip. $( gzip | wc -c )
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress from standard input and print the byte count preceded with 'gzip.' ### Response: echo gzip. $( gzip | wc -c )
Compress from standard input with gzip
gzip
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress from standard input with gzip ### Response: gzip
Compress in parallel regular files in the current directory tree that were last modified more than 7 days ago
find . -type f -mtime +7 | tee compressedP.list | xargs -I{} -P10 compress {} &
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress in parallel regular files in the current directory tree that were last modified more than 7 days ago ### Response: find . -type f -mtime +7 | tee compressedP.list | xargs -I{} -P10 compress {} &
Compress regular files in the current directory tree that were last modified more than 7 days ago
find . -type f -mtime +7 | tee compressedP.list | xargs compress
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress regular files in the current directory tree that were last modified more than 7 days ago ### Response: find . -type f -mtime +7 | tee compressedP.list | xargs compress
Compress the file 'file' with 'bzip2' and append all output to the file 'logfile' and stdout
bzip2 file | tee -a logfile
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compress the file 'file' with 'bzip2' and append all output to the file 'logfile' and stdout ### Response: bzip2 file | tee -a logfile
Compresses all '*.xml' files under current directory with 'bzip2' utility.
find -name \*.xml -print0 | xargs -0 -n 1 -P 3 bzip2
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compresses all '*.xml' files under current directory with 'bzip2' utility. ### Response: find -name \*.xml -print0 | xargs -0 -n 1 -P 3 bzip2
Compresses all files in a current folder (not recursively).
bzip2 *
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compresses all files in a current folder (not recursively). ### Response: bzip2 *
Compresses all files in the directory 'PATH_TO_FOLDER' without recursion and keeps uncompressed files from deletion.
find PATH_TO_FOLDER -maxdepth 1 -type f -exec bzip2 -zk {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compresses all files in the directory 'PATH_TO_FOLDER' without recursion and keeps uncompressed files from deletion. ### Response: find PATH_TO_FOLDER -maxdepth 1 -type f -exec bzip2 -zk {} \;
Compresses all files listed in array $*, executing in background.
compress $* &
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compresses all files listed in array $*, executing in background. ### Response: compress $* &
Compresses file 'example.log' keeping original file in place.
bzip2 -k example.log
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compresses file 'example.log' keeping original file in place. ### Response: bzip2 -k example.log
Compresses with compression level 9 all files under the current folder but already compressed '*.bz2' files, performing in background.
find "$1" -type f | egrep -v '\.bz2' | xargs bzip2 -9 &
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compresses with compression level 9 all files under the current folder but already compressed '*.bz2' files, performing in background. ### Response: find "$1" -type f | egrep -v '\.bz2' | xargs bzip2 -9 &
Compute the mean average of the word count of *.txt files in the home directory
find ~/ -name '*.txt' -print0 | xargs -0 wc -w | awk 'END { print $1/(NR-1) }'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compute the mean average of the word count of *.txt files in the home directory ### Response: find ~/ -name '*.txt' -print0 | xargs -0 wc -w | awk 'END { print $1/(NR-1) }'
Compute the mean average of the word count of *.txt files smaller than 2000 words in the home directory
find ~/Journalism -name '*.txt' -print0 | xargs -0 wc -w | awk '$1 < 2000 {v += $1; c++} END {print v/c}'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Compute the mean average of the word count of *.txt files smaller than 2000 words in the home directory ### Response: find ~/Journalism -name '*.txt' -print0 | xargs -0 wc -w | awk '$1 < 2000 {v += $1; c++} END {print v/c}'
Concatenate all files under the current directory and below that contain "test" in their names
find . -iname '*test*' -exec cat {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Concatenate all files under the current directory and below that contain "test" in their names ### Response: find . -iname '*test*' -exec cat {} \;
Concatenate files containing `test' in their names
find . -name '*test*' -exec cat {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Concatenate files containing `test' in their names ### Response: find . -name '*test*' -exec cat {} \;
Concatenate with a space every other line in "input.txt"
paste -s -d' \n' input.txt
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Concatenate with a space every other line in "input.txt" ### Response: paste -s -d' \n' input.txt
Connect as ssh user specified by variable USER to host whose IP address or host name is specified by HOST, and copy remote file specified by variable SRC to location on local host specified by variable DEST, disabling progress info but enabling debug info.
scp -qv $USER@$HOST:$SRC $DEST
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect as ssh user specified by variable USER to host whose IP address or host name is specified by HOST, and copy remote file specified by variable SRC to location on local host specified by variable DEST, disabling progress info but enabling debug info. ### Response: scp -qv $USER@$HOST:$SRC $DEST
Connect to "$USER_AT_HOST" using connection sharing on "$SSHSOCKET" and request the master to exit
ssh -S "$SSHSOCKET" -O exit "$USER_AT_HOST"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect to "$USER_AT_HOST" using connection sharing on "$SSHSOCKET" and request the master to exit ### Response: ssh -S "$SSHSOCKET" -O exit "$USER_AT_HOST"
Connect to host "$USER_AT_HOST" in master mode in the background without executing any commands and set the ControlPath to "$SSHSOCKET"
ssh -M -f -N -o ControlPath="$SSHSOCKET" "$USER_AT_HOST"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect to host "$USER_AT_HOST" in master mode in the background without executing any commands and set the ControlPath to "$SSHSOCKET" ### Response: ssh -M -f -N -o ControlPath="$SSHSOCKET" "$USER_AT_HOST"
Connect to host "${HOSTNAME}" as user "${USERNAME}" and execute "${SCRIPT}" non-interactively
ssh -l ${USERNAME} ${HOSTNAME} "${SCRIPT}"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect to host "${HOSTNAME}" as user "${USERNAME}" and execute "${SCRIPT}" non-interactively ### Response: ssh -l ${USERNAME} ${HOSTNAME} "${SCRIPT}"
Connect to host "remotehost" as ssh user "user" to copy remote file "/location/KMST_DataFile_*.kms" to current directory on local host.
scp -v user@remotehost:/location/KMST_DataFile_*.kms
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect to host "remotehost" as ssh user "user" to copy remote file "/location/KMST_DataFile_*.kms" to current directory on local host. ### Response: scp -v user@remotehost:/location/KMST_DataFile_*.kms
Connect to host "server_b" as ssh user "user" and copy local file "/my_folder/my_file.xml" to server_b's directory "/my_new_folder/".
scp -v /my_folder/my_file.xml user@server_b:/my_new_folder/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect to host "server_b" as ssh user "user" and copy local file "/my_folder/my_file.xml" to server_b's directory "/my_new_folder/". ### Response: scp -v /my_folder/my_file.xml user@server_b:/my_new_folder/
Connect to host 'hostname' as user 'username' by forcing host key confirmation
ssh -o UserKnownHostsFile=/dev/null username@hostname
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect to host 'hostname' as user 'username' by forcing host key confirmation ### Response: ssh -o UserKnownHostsFile=/dev/null username@hostname
Connect to port 1234 of specified IP address or hostname as ssh user "user", and copy all visible files in /var/www/mywebsite/dumps/ on this host to local directory /myNewPathOnCurrentLocalMachine - this directory must already exist on local host.
scp -P 1234 user@[ip address or host name]:/var/www/mywebsite/dumps/* /var/www/myNewPathOnCurrentLocalMachine
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect to port 1234 of specified IP address or hostname as ssh user "user", and copy all visible files in /var/www/mywebsite/dumps/ on this host to local directory /myNewPathOnCurrentLocalMachine - this directory must already exist on local host. ### Response: scp -P 1234 user@[ip address or host name]:/var/www/mywebsite/dumps/* /var/www/myNewPathOnCurrentLocalMachine
Connect to port 2222 of example.com as ssh user "user", and copy local file "/absolute_path/source-folder/some-file" to remote directory "/absolute_path/destination-folder"
scp -P 2222 /absolute_path/source-folder/some-file user@example.com:/absolute_path/destination-folder
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect to port 2222 of example.com as ssh user "user", and copy local file "/absolute_path/source-folder/some-file" to remote directory "/absolute_path/destination-folder" ### Response: scp -P 2222 /absolute_path/source-folder/some-file user@example.com:/absolute_path/destination-folder
Connect via ssh to "your.server.example.com" and recursively copy directory "/path/to/foo" on this host to direcotry "/home/user/Desktop" on local host, using "blowfish" cipher algorithm.
scp -c blowfish -r user@your.server.example.com:/path/to/foo /home/user/Desktop/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Connect via ssh to "your.server.example.com" and recursively copy directory "/path/to/foo" on this host to direcotry "/home/user/Desktop" on local host, using "blowfish" cipher algorithm. ### Response: scp -c blowfish -r user@your.server.example.com:/path/to/foo /home/user/Desktop/
Construction with additional '-exec true' to be used if both commands need to run 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: Construction with additional '-exec true' to be used if both commands need to run regardless of their success or failure. ### Response: find . -name "*.txt" \( -exec echo {} \; -o -exec true \; \) -exec grep banana {} \;