text large_stringlengths 242 1.17k | nl large_stringlengths 13 387 | bash large_stringlengths 1 715 | source large_stringclasses 3
values |
|---|---|---|---|
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all file details with filenames matching "*2012*.xml" from "serveripaddress::pt/dir/files/" listening on port 111 and write to "output.tx... | List all file details with filenames matching "*2012*.xml" from "serveripaddress::pt/dir/files/" listening on port 111 and write to "output.txt" | rsync --list-only --include "*2012*.xml" -exclude "*.xml" serveripaddress::pt/dir/files/ --port=111 > output.txt | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a symbolic link named "/usr/local/bin/subl" to "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"<|im_end|>
<|im_start|... | Create a symbolic link named "/usr/local/bin/subl" to "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" | sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the list of files modified within a fortnight ago removing the leading ./ from the file names<|im_end|>
<|im_start|>assistant
find . -m... | Print the list of files modified within a fortnight ago removing the leading ./ from the file names | find . -mtime -14 | sed -e 's/^\.\///' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Lists all files in a current folder, separating names with comma.<|im_end|>
<|im_start|>assistant
ls | sed '$!s/$/,/' | tr -d '\n'<|im_end|> | Lists all files in a current folder, separating names with comma. | ls | sed '$!s/$/,/' | tr -d '\n' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Merge lines whose first comma-separated field in file 'in1' also appears as a first comma-separated in file 'in2', also outputting unmatched l... | Merge lines whose first comma-separated field in file 'in1' also appears as a first comma-separated in file 'in2', also outputting unmatched lines from 'in2' - both files must be sorted, and the output format of each line will be: first field of in1, second field of in2, and third field of in2. | join -t, -o 1.1,1.2,2.3 -a1 in1 in2 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find a size of only the target directory in MB format<|im_end|>
<|im_start|>assistant
du -s --block-size=M /path/to/your/directory/<|im_end|> | Find a size of only the target directory in MB format | du -s --block-size=M /path/to/your/directory/ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Archive "/path/to/copy" on host "remote.host" as user "user" to "/path/to/local/storage" updating files with different checksums, showing huma... | 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 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system UPS power failure events and generate reports on outages.<|im_end|>
<|im_start|>assistant
#!/bin/bash
touch... | Create a script to monitor system UPS power failure events and generate reports on outages. | #!/bin/bash
touch /tmp/ups_power_failure_report.txt
while true; do
grep 'power failure' /var/log/syslog >> /tmp/ups_power_failure_report.txt
sleep 3600
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Fetch a script from the web and interpert (run) it in the current shell, without writing the script to disk.<|im_end|>
<|im_start|>assistant
s... | Fetch a script from the web and interpert (run) it in the current shell, without writing the script to disk. | source <(wget -q -O - "http://www.modulesgarden.com/manage/dl.php?type=d&id=676") | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print differences between the sorted content of file $1 and file $2, executing 'diff' with options from "${@:3}" array slice<|im_end|>
<|im_st... | Print differences between the sorted content of file $1 and file $2, executing 'diff' with options from "${@:3}" array slice | diff "${@:3}" <(sort "$1") <(sort "$2") | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Unsets DUALCASE variable.<|im_end|>
<|im_start|>assistant
unset DUALCASE<|im_end|> | Unsets DUALCASE variable. | unset DUALCASE | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system root user process file system I/O and send an alert if any process exceeds a certain file system I/O thresho... | Create a script to monitor system root user process file system I/O and send an alert if any process exceeds a certain file system I/O threshold during specific hours. | #!/bin/bash
threshold="100"
current_hour=$(date +'%H')
if [ "$current_hour" -ge "8" ] && [ "$current_hour" -le "18" ]; then
processes=$(ps aux --sort=-%io | awk 'NR<=5{print $11}')
while read -r process; do
io_usage=$(iotop -b -n 1 | grep "$process" | awk '{print $4}')
if [ "$io_usage" -gt "... | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
search for the regular/normal file java in the entire file system excluding search in the directories share and those starting with 10_Recomme... | search for the regular/normal file java in the entire file system excluding search in the directories share and those starting with 10_Recommended and discard all the errors | find / \ -prune -o -type f -name java -print 2>/dev/null | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to decompress all gzip files in a directory.<|im_end|>
<|im_start|>assistant
#!/bin/bash
for file in *.gz; do
gunzip "$fi... | Create a script to decompress all gzip files in a directory. | #!/bin/bash
for file in *.gz; do
gunzip "$file"
done
echo "Files decompressed." | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Make a directory in the current working directory with a random 32 alphanumeric character name<|im_end|>
<|im_start|>assistant
mkdir $(cat /de... | Make a directory in the current working directory with a random 32 alphanumeric character name | mkdir $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print a sorted list of the extensions of the regular files from the current directory tree<|im_end|>
<|im_start|>assistant
find . -type f | pe... | Print a sorted list of the extensions of the regular files from the current directory tree | find . -type f | perl -ne 'print $1 if m/\.$/' | sort -u | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find *.pdf files in the PDFs directory tree that contain text "perry sound" and "October 26, 2004"<|im_end|>
<|im_start|>assistant
find PDFs/ ... | Find *.pdf files in the PDFs directory tree that contain text "perry sound" and "October 26, 2004" | find PDFs/ -name '*.pdf' -exec sh -c 'pdftotext "{}" - | grep -l -Z -i --label="{}" "perry sound" | xargs -0 -I{} grep -i -l --label="{}" "October 26, 2004" "{}"' \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
display all the files ending with .c in the current folder<|im_end|>
<|im_start|>assistant
find . -name \*.c -print0<|im_end|> | display all the files ending with .c in the current folder | find . -name \*.c -print0 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find the sizes of only directories under current directory sorted by size and redirect the output to dir-sizes.txt<|im_end|>
<|im_start|>assis... | Find the sizes of only directories under current directory sorted by size and redirect the output to dir-sizes.txt | find . -type d -print0 | xargs -0 -n1 du -sk | sort -rn > dir-sizes.txt& | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all *.c, *.h and *.cpp files under current directory<|im_end|>
<|im_start|>assistant
find . -type f \ -exec ls {} \;<|im_end|> | List all *.c, *.h and *.cpp files under current directory | find . -type f \ -exec ls {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Puts working directory into clipboard, stripping newlines<|im_end|>
<|im_start|>assistant
echo -n $ | pbcopy<|im_end|> | Puts working directory into clipboard, stripping newlines | echo -n $ | pbcopy | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Display each line in file.txt backwards<|im_end|>
<|im_start|>assistant
rev file.txt<|im_end|> | Display each line in file.txt backwards | rev file.txt | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Search the current directory tree for regular files whose names match regular expression ".+-[0-9]+x[0-9]+\.jpg"<|im_end|>
<|im_start|>assista... | Search the current directory tree for regular files whose names match regular expression ".+-[0-9]+x[0-9]+\.jpg" | find . -type f -regex ".+-[0-9]+x[0-9]+\.jpg" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove trailing spaces, replace tabs with spaces, replace Windows CRLF with Unix LF in all *.java, *.xml and *.css files under current direct... | Remove trailing spaces, replace tabs with spaces, replace Windows CRLF with Unix LF in all *.java, *.xml and *.css files under current directory excluding ./vendor directory and its contents | find . -path ./vendor -prune -o \ -exec gsed -i -E 's/\t/ /' \{} \; -exec gsed -i -E 's/[[:space:]]*$//' \{} \; -exec gsed -i -E 's/\r\n/\n/' \{} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to find the smallest positive number evenly divisible by all of the numbers from 1 to n.<|im_end|>
<|im_start|>assistant
#!/bi... | Create a script to find the smallest positive number evenly divisible by all of the numbers from 1 to n. | #!/bin/bash
smallest_divisible() {
n="$1"
result=1
for ((i=1; i<=n; i++)); do
divisor=1
while [ $((result % i)) -ne 0 ]; do
result=$((result + 1))
done
done
echo "$result"
}
smallest_divisible 10 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
search for all "tif" images in current folder<|im_end|>
<|im_start|>assistant
find . -name '*.tif ' -print<|im_end|> | search for all "tif" images in current folder | find . -name '*.tif ' -print | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Removes all cached yum data from a system.<|im_end|>
<|im_start|>assistant
sudo yum clean all<|im_end|> | Removes all cached yum data from a system. | sudo yum clean all | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
display all files in current folder, with each file name displayed twice on same line<|im_end|>
<|im_start|>assistant
find . | xargs -I{} prin... | display all files in current folder, with each file name displayed twice on same line | find . | xargs -I{} printf "%s%s\n" {} {} | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Display the host's ECDSA fingerprint using the md5 hasing algorithm.<|im_end|>
<|im_start|>assistant
ssh-keygen -l -E md5 -f /etc/ssh/ssh_host... | Display the host's ECDSA fingerprint using the md5 hasing algorithm. | ssh-keygen -l -E md5 -f /etc/ssh/ssh_host_ecdsa_key.pub | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Set 644 permission to all regular files under current directory<|im_end|>
<|im_start|>assistant
chmod 644 `find -type f`<|im_end|> | Set 644 permission to all regular files under current directory | chmod 644 `find -type f` | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Dump "file" as ASCII characters<|im_end|>
<|im_start|>assistant
od -t c file<|im_end|> | Dump "file" as ASCII characters | od -t c file | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Rename all *.jpg files to *.jpg$.jpg files under current directory by appending the parent directory name at the beginning of their names<|im_... | Rename all *.jpg files to *.jpg$.jpg files under current directory by appending the parent directory name at the beginning of their names | find . -name '*.jpg' -exec sh -c 'mv "$0" "$(basename $)-${0%.JPG}$.jpg"' {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Monitor system swapping every 10 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/bash
for ((i=0; i<6; i+... | Monitor system swapping every 10 seconds for 1 minute and display the results. | #!/bin/bash
for ((i=0; i<6; i++)); do
sar -W 10 6
sleep 10
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Make 3 directories named "~/Labs/lab4a/folder" followed by the number 1, 2, or 3<|im_end|>
<|im_start|>assistant
mkdir ~/Labs/lab4a/folder{1..... | Make 3 directories named "~/Labs/lab4a/folder" followed by the number 1, 2, or 3 | mkdir ~/Labs/lab4a/folder{1..3} | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Run script `fixname.sh' for each regular file from the current directory tree<|im_end|>
<|im_start|>assistant
find . -type f -exec sh fixname.... | Run script `fixname.sh' for each regular file from the current directory tree | find . -type f -exec sh fixname.sh {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Processes file as binary file, and searches for symbol by its octal value '\015'.<|im_end|>
<|im_start|>assistant
grep -U -l $'\015' $<|im_end... | Processes file as binary file, and searches for symbol by its octal value '\015'. | grep -U -l $'\015' $ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
get the job number from the stored PID<|im_end|>
<|im_start|>assistant
jobs -l | fgrep $! | perl -ne 'print "$1\n" if /\[\]/'<|im_end|> | get the job number from the stored PID | jobs -l | fgrep $! | perl -ne 'print "$1\n" if /\[\]/' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system ARP packets and send an alert if it exceeds a certain threshold.<|im_end|>
<|im_start|>assistant
#!/bin/bash... | Create a script to monitor system ARP packets and send an alert if it exceeds a certain threshold. | #!/bin/bash
threshold="100"
arp_packets=$(tcpdump -c 100 arp | grep 'packets captured' | awk '{print $1}')
if [ "$arp_packets" -gt "$threshold" ]; then
echo "System ARP packets count is too high: $arp_packets" | mail -s "High ARP Packets Alert" user@example.com
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Set variable PING to 1 if it's possible to ping host ADDRESS, to 0 otherwise.<|im_end|>
<|im_start|>assistant
PING=$<|im_end|> | Set variable PING to 1 if it's possible to ping host ADDRESS, to 0 otherwise. | PING=$ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script that monitors system log files for specific patterns and alerts if any are found.<|im_end|>
<|im_start|>assistant
#!/bin/bash
... | Create a script that monitors system log files for specific patterns and alerts if any are found. | #!/bin/bash
while true; do
grep -q 'ERROR' /var/log/syslog && echo "Error found in syslog"
sleep 300
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all *.jpg files/directories under current directory<|im_end|>
<|im_start|>assistant
find . -name '*.jpg'<|im_end|> | Find all *.jpg files/directories under current directory | find . -name '*.jpg' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Monitor system disk I/O performance every 5 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/bash
for ((i... | Monitor system disk I/O performance every 5 seconds for 1 minute and display the results. | #!/bin/bash
for ((i=0; i<12; i++)); do
iostat -dx 5 6
sleep 5
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create md5sum of a directory<|im_end|>
<|im_start|>assistant
du -csxb /path | md5sum > file<|im_end|> | Create md5sum of a directory | du -csxb /path | md5sum > file | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Login to remote system "app1" through an ssh gateway system called "gw"<|im_end|>
<|im_start|>assistant
ssh -At gw ssh -A app1<|im_end|> | Login to remote system "app1" through an ssh gateway system called "gw" | ssh -At gw ssh -A app1 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove all libGLE* files from the current directory tree<|im_end|>
<|im_start|>assistant
find . -name libGLE* | xargs rm -f<|im_end|> | Remove all libGLE* files from the current directory tree | find . -name libGLE* | xargs rm -f | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the base name of the current working directory<|im_end|>
<|im_start|>assistant
basename "`pwd`"<|im_end|> | Print the base name of the current working directory | basename "`pwd`" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find all regular/normal files in the current folder whose name has the word photo or picture and which have been modified in the last 30 minut... | find all regular/normal files in the current folder whose name has the word photo or picture and which have been modified in the last 30 minutes | find . \ -and ! -type d -and -mmin -30 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all *.jpg files under maximum 2 levels down the temp/images/* paths and run `mogrify -resize 100x100">" -quality 80 -compress JPEG -moni... | Find all *.jpg files under maximum 2 levels down the temp/images/* paths and run `mogrify -resize 100x100">" -quality 80 -compress JPEG -monitor -strip` with the file paths as arguments | find temp/images/* -maxdepth 2 -iname "*.jpg" -print0 | xargs -0 mogrify -resize 100x100">" -quality 80 -compress JPEG -monitor -strip | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
run programm "/home/oracle/database/runInstaller" as user oracle in background<|im_end|>
<|im_start|>assistant
su oracle -c "/home/oracle/data... | run programm "/home/oracle/database/runInstaller" as user oracle in background | su oracle -c "/home/oracle/database/runInstaller" & | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Pushes current folder to the directory stack.<|im_end|>
<|im_start|>assistant
pushd .<|im_end|> | Pushes current folder to the directory stack. | pushd . | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a table from '111 22 3\n4 555 66\n' with columns separated by a single space<|im_end|>
<|im_start|>assistant
echo -en '111 22 3\n4 555 ... | Create a table from '111 22 3\n4 555 66\n' with columns separated by a single space | echo -en '111 22 3\n4 555 66\n' | column -t | sed 's/ \/\1/g' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
display all the directories in specific path excluding those that are present in a path and save the ouput to a file<|im_end|>
<|im_start|>as... | display all the directories in specific path excluding those that are present in a path and save the ouput to a file | find $x -type d -wholename '*' ! -wholename */@eaDir* > /tmp/mediaindex/$nn.dir | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress every file in the current directory tree that matches "*cache.html" and keep the original file<|im_end|>
<|im_start|>assistant
find .... | Compress every file in the current directory tree that matches "*cache.html" and keep the original file | find . -type f -name "*cache.html" -exec sh -c "gzip < {} > {}.gz" \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Saves list of currently logged in users in 'userlist' variable.<|im_end|>
<|im_start|>assistant
userlist=$(w|awk 'BEGIN{ORS=","}NR>2{print $1}... | Saves list of currently logged in users in 'userlist' variable. | userlist=$(w|awk 'BEGIN{ORS=","}NR>2{print $1}'|sed 's/,$//' ) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Open all .java files in the current directory tree in the vim editor<|im_end|>
<|im_start|>assistant
find . -name '*.java' | xargs vim<|im_end... | Open all .java files in the current directory tree in the vim editor | find . -name '*.java' | xargs vim | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
display all the files in the folder "/Users/Me/Desktop" which have read permission to them<|im_end|>
<|im_start|>assistant
find /Users/Me/Desk... | display all the files in the folder "/Users/Me/Desktop" which have read permission to them | find /Users/Me/Desktop -readable | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Extract rpm "foo.rpm"<|im_end|>
<|im_start|>assistant
rpm2cpio foo.rpm | xzcat | cpio -idmv<|im_end|> | Extract rpm "foo.rpm" | rpm2cpio foo.rpm | xzcat | cpio -idmv | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Dump "a\0b" as hexadecimal bytes<|im_end|>
<|im_start|>assistant
printf "a\0b" | od -tx1<|im_end|> | Dump "a\0b" as hexadecimal bytes | printf "a\0b" | od -tx1 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files and directories starting from the current directory and excluding hidden files and directories<|im_end|>
<|im_start|>assistant
... | Find all files and directories starting from the current directory and excluding hidden files and directories | find . \ | sed 's/^..//' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the second line of output of "ls -l"<|im_end|>
<|im_start|>assistant
ls -l | head -2 | tail -1<|im_end|> | Print the second line of output of "ls -l" | ls -l | head -2 | tail -1 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change directory to "/lib/modules/" of the current kernel release<|im_end|>
<|im_start|>assistant
cd /lib/modules/$/<|im_end|> | Change directory to "/lib/modules/" of the current kernel release | cd /lib/modules/$/ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the last line of the alphabetically sorted lines in file "set"<|im_end|>
<|im_start|>assistant
tail -1 <(sort set)<|im_end|> | Print the last line of the alphabetically sorted lines in file "set" | tail -1 <(sort set) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Save the user name of the current user to variable "x"<|im_end|>
<|im_start|>assistant
x=$<|im_end|> | Save the user name of the current user to variable "x" | x=$ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Allow ssh from 127.0.0.1 on port "someport" through "proxy.host" to "host.in.the.remote.net" on port 22<|im_end|>
<|im_start|>assistant
ssh -f... | Allow ssh from 127.0.0.1 on port "someport" through "proxy.host" to "host.in.the.remote.net" on port 22 | ssh -fL 127.0.0.1:someport:host.in.the.remote.net:22 proxy.host | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Recursively change the owner to "$USER" and group to "$GROUP" of "/var/lib/cassandra"<|im_end|>
<|im_start|>assistant
sudo chown -R $USER:$GR... | Recursively change the owner to "$USER" and group to "$GROUP" of "/var/lib/cassandra" | sudo chown -R $USER:$GROUP /var/lib/cassandra | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the output of history without line numbers<|im_end|>
<|im_start|>assistant
history|awk '{$1="";print substr}'<|im_end|> | Print the output of history without line numbers | history|awk '{$1="";print substr}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Saves exit statuses of piped commands in a system variable PIPESTATUS='([0]="0" [1]="1" [2]="0")'<|im_end|>
<|im_start|>assistant
true | false... | Saves exit statuses of piped commands in a system variable PIPESTATUS='([0]="0" [1]="1" [2]="0")' | true | false | true | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Reports count of characters in the value of ${FOO_NO_LEAD_SPACE} variable as follows: "length(FOO_NO_LEAD_SPACE)==<counted number of character... | Reports count of characters in the value of ${FOO_NO_LEAD_SPACE} variable as follows: "length(FOO_NO_LEAD_SPACE)==<counted number of characters>" | echo -e "length(FOO_NO_LEAD_SPACE)==$(echo -ne "${FOO_NO_LEAD_SPACE}" | wc -m)" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find files in current folder using name patterns and sort the display the file names in the sorted order<|im_end|>
<|im_start|>assistant
find ... | find files in current folder using name patterns and sort the display the file names in the sorted order | find . -name "S1A*1S*SAFE" | rev | awk -F '/' '{print $1}' | rev | sort -t _ -k 5 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
search for the file "dok.txt" in the kat folder and if it sis present then print the echo statement<|im_end|>
<|im_start|>assistant
find kat -... | search for the file "dok.txt" in the kat folder and if it sis present then print the echo statement | find kat -name dok.txt -exec bash -c 'echo -e "\nAutor: Jan Kowalski" >> {}' \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Saves listing of a current folder in 'var' variable.<|im_end|>
<|im_start|>assistant
var=$(ls -l)<|im_end|> | Saves listing of a current folder in 'var' variable. | var=$(ls -l) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
set alias "foo" for command "printf"<|im_end|>
<|im_start|>assistant
alias foo="printf"<|im_end|> | set alias "foo" for command "printf" | alias foo="printf" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Counts all lines in $i file.<|im_end|>
<|im_start|>assistant
cat $i | wc -l<|im_end|> | Counts all lines in $i file. | cat $i | wc -l | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all .txt files in the current directory tree and save their path names to /tmp/logfile<|im_end|>
<|im_start|>assistant
find /full/path/to... | Find all .txt files in the current directory tree and save their path names to /tmp/logfile | find /full/path/to/dir -name '*.txt' -print0 | xargs -0 >/tmp/logfile | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system fan speed and send an alert if it drops below a certain threshold.<|im_end|>
<|im_start|>assistant
#!/bin/ba... | Create a script to monitor system fan speed and send an alert if it drops below a certain threshold. | #!/bin/bash
threshold=1000
fan_speed=$(sensors | grep 'fan1' | awk '{print $2}')
if [ "$fan_speed" -lt "$threshold" ]; then
echo "System fan speed drops below $threshold RPM."
# Send alert here
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Display variable 'var' without leading and trailing whitespace.<|im_end|>
<|im_start|>assistant
echo $var | awk '{gsub}1'<|im_end|> | Display variable 'var' without leading and trailing whitespace. | echo $var | awk '{gsub}1' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Inserts "new line" after last occurrence of ScriptAlias in a file<|im_end|>
<|im_start|>assistant
tac file | awk '/ScriptAlias/ && ! seen {pri... | Inserts "new line" after last occurrence of ScriptAlias in a file | tac file | awk '/ScriptAlias/ && ! seen {print "new line"; seen=1} {print}' | tac | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files/directories under /eserver6 directory and follow symlinks if needed<|im_end|>
<|im_start|>assistant
find /eserver6 -L<|im_end... | Find all files/directories under /eserver6 directory and follow symlinks if needed | find /eserver6 -L | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the full real path of "/dev/disk/by-uuid/$1" followed by "is not mounted"<|im_end|>
<|im_start|>assistant
echo $ is not mounted<|im_end|... | Print the full real path of "/dev/disk/by-uuid/$1" followed by "is not mounted" | echo $ is not mounted | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Recursively change the owner to "${JBOSS_USER}" of "$JBOSS_LOG_DIR"<|im_end|>
<|im_start|>assistant
chown -R ${JBOSS_USER}: $JBOSS_LOG_DIR<|im... | Recursively change the owner to "${JBOSS_USER}" of "$JBOSS_LOG_DIR" | chown -R ${JBOSS_USER}: $JBOSS_LOG_DIR | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all directories under current directory and run /path/to/script.sh for each of them<|im_end|>
<|im_start|>assistant
find . -type d -exec... | Find all directories under current directory and run /path/to/script.sh for each of them | find . -type d -exec /path/to/script.sh \{} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script that monitors system database replication status and logs any errors.<|im_end|>
<|im_start|>assistant
#!/bin/bash
while true;... | Create a script that monitors system database replication status and logs any errors. | #!/bin/bash
while true; do
mysql -e 'SHOW SLAVE STATUS\G'
sleep 600
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files under /path/you/need, calculate their md5sums and redirect the results to checksums.md5<|im_end|>
<|im_start|>assistant
find /p... | Find all files under /path/you/need, calculate their md5sums and redirect the results to checksums.md5 | find /path/you/need -type f -exec md5sum {} \; > checksums.md5 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all identical files in the /usr directory tree that are bigger than 10000 bytes and write the result to usr.dups<|im_end|>
<|im_start|>as... | Find all identical files in the /usr directory tree that are bigger than 10000 bytes and write the result to usr.dups | find /usr -type f | samefile -g 10000 >usr.dups | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find file which name like 'foo.*' in current directory.<|im_end|>
<|im_start|>assistant
find . -name "foo.*"<|im_end|> | find file which name like 'foo.*' in current directory. | find . -name "foo.*" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Save a line of 100 random characters either "." or " " in variable "foo"<|im_end|>
<|im_start|>assistant
foo=$<|im_end|> | Save a line of 100 random characters either "." or " " in variable "foo" | foo=$ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print DISPLAY of "orschiro" user<|im_end|>
<|im_start|>assistant
who | sed -e '/orschiro/! d; /pts/! d; s/^.*\(:[0-9.]\+\).*$/\1/p;d' | head -... | Print DISPLAY of "orschiro" user | who | sed -e '/orschiro/! d; /pts/! d; s/^.*\(:[0-9.]\+\).*$/\1/p;d' | head -n1 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find all the ".mov" files in the current folder and give it as an input to the myffmpeg.sh script file<|im_end|>
<|im_start|>assistant
find . ... | find all the ".mov" files in the current folder and give it as an input to the myffmpeg.sh script file | find . -iname "*.mov" -exec /path/to/myffmpeg.sh {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Open a ssh connection to user@host with X11 forwarding to run GUI programs<|im_end|>
<|im_start|>assistant
ssh user@host -X<|im_end|> | Open a ssh connection to user@host with X11 forwarding to run GUI programs | ssh user@host -X | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
run somecommand with one argument for each file recursively in /path that matches 'pattern'<|im_end|>
<|im_start|>assistant
find /path -name '... | run somecommand with one argument for each file recursively in /path that matches 'pattern' | find /path -name 'pattern' -exec somecommand {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the first word followed by the rest of the line formatted to fit in 100 characters for every line in "input"<|im_end|>
<|im_start|>assis... | Print the first word followed by the rest of the line formatted to fit in 100 characters for every line in "input" | sed 's/\ /\1\n/' input | fold -w 100 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
dispaly a list of all the files in the file system which belong to a specific user and exclude searching in the folder proc<|im_end|>
<|im_st... | dispaly a list of all the files in the file system which belong to a specific user and exclude searching in the folder proc | find / -path /proc -prune -o -user <account> -ls | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Unsets random one from first five array members.<|im_end|>
<|im_start|>assistant
unset array[`shuf -i 0-4 -n1`];<|im_end|> | Unsets random one from first five array members. | unset array[`shuf -i 0-4 -n1`]; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
search for a word in all the php files in the current folder and display the count of all matching lines.<|im_end|>
<|im_start|>assistant
find... | search for a word in all the php files in the current folder and display the count of all matching lines. | find . -name \*.php -type f -print0 | xargs -0 -grep -Hn '$test' | wc -l | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove all files named `junk' and `dummy'<|im_end|>
<|im_start|>assistant
find . \ -exec rm '{}' \;<|im_end|> | Remove all files named `junk' and `dummy' | find . \ -exec rm '{}' \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script that monitors system Kubernetes cluster events and logs any critical events.<|im_end|>
<|im_start|>assistant
#!/bin/bash
whil... | Create a script that monitors system Kubernetes cluster events and logs any critical events. | #!/bin/bash
while true; do
kubectl get events --sort-by=.metadata.creationTimestamp
sleep 600
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Monitor disk I/O performance using iostat every 5 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/bash
i... | Monitor disk I/O performance using iostat every 5 seconds for 1 minute and display the results. | #!/bin/bash
iostat -x 5 12 >> disk_io_performance.log | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
display all files in the current folder while discarding the errors save the output to a file<|im_end|>
<|im_start|>assistant
find . 2>/dev/nu... | display all files in the current folder while discarding the errors save the output to a file | find . 2>/dev/null >files_and_folders | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
search for files in a directory and check the validity of a command by giving the file as input<|im_end|>
<|im_start|>assistant
find … -print... | search for files in a directory and check the validity of a command by giving the file as input | find … -print0 | xargs -0 -n1 invalid_command | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files/directories under '/etc' directory tree that have been modified after '/etc/motd'<|im_end|>
<|im_start|>assistant
find /etc -ne... | Find all files/directories under '/etc' directory tree that have been modified after '/etc/motd' | find /etc -newer /etc/motd | AnishJoshi/nl2bash-custom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.