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 display the filenames which do not have begin with dot (.)<|im_end|> <|im_start|>assistant find . -maxdepth 1 -name '[!.]*' -printf 'Name: %16...
display the filenames which do not have begin with dot (.)
find . -maxdepth 1 -name '[!.]*' -printf 'Name: %16f Size: %6s\n'
GWHed/nl2bash
<|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 first 10 lines of the byte hex dump with no file offset data for "/bin/ls"<|im_end|> <|im_start|>assistant od -t x1 -An /bin/ls | ...
Display the first 10 lines of the byte hex dump with no file offset data for "/bin/ls"
od -t x1 -An /bin/ls | head
GWHed/nl2bash
<|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 first 32 bytes in "foo" as printable characters with 16 characters per line<|im_end|> <|im_start|>assistant od -c foo |head -2<|im...
Display the first 32 bytes in "foo" as printable characters with 16 characters per line
od -c foo |head -2
GWHed/nl2bash
<|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 hardware platform, ie. x86_64 even if current kernel uses 32-bit addressing.<|im_end|> <|im_start|>assistant uname -i<|im_end|>
Display hardware platform, ie. x86_64 even if current kernel uses 32-bit addressing.
uname -i
GWHed/nl2bash
<|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 help of find command<|im_end|> <|im_start|>assistant find --help<|im_end|>
display the help of find command
find --help
GWHed/nl2bash
<|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 sha256 hasing algorithm.<|im_end|> <|im_start|>assistant ssh-keygen -l -f /etc/ssh/ssh_host_ecd...
Display the host's ECDSA fingerprint using the sha256 hasing algorithm.
ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key.pub
GWHed/nl2bash
<|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 hostname.<|im_end|> <|im_start|>assistant uname -n<|im_end|>
Display hostname.
uname -n
GWHed/nl2bash
<|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 html, javascript and text files in the current folder (print0 is used to preserve the filenames of all the files which have newlin...
display the html, javascript and text files in the current folder (print0 is used to preserve the filenames of all the files which have newlines in their names)
find . -type f \( -name "*.htm*" -o -name "*.js*" -o -name "*.txt" \) -print0 | xargs -0 -n1 echo
GWHed/nl2bash
<|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 human-readable file type description of ascii.txt<|im_end|> <|im_start|>assistant file ascii.txt<|im_end|>
Display human-readable file type description of ascii.txt
file ascii.txt
GWHed/nl2bash
<|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 in a list of all the files that are bigger than 10KB in current folder<|im_end|> <|im_start|>assistant find . -size +10k -ls<|im_end|>
display in a list of all the files that are bigger than 10KB in current folder
find . -size +10k -ls
GWHed/nl2bash
<|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 infinite scroll of random ASCII art<|im_end|> <|im_start|>assistant yes 'c=(╱ ╲);printf ${c[RANDOM%2]}'|bash<|im_end|>
Display infinite scroll of random ASCII art
yes 'c=(╱ ╲);printf ${c[RANDOM%2]}'|bash
GWHed/nl2bash
<|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 infinite scroll of random ASCII art<|im_end|> <|im_start|>assistant yes 'printf \\u$[2571+RANDOM%2]'|bash<|im_end|>
Display infinite scroll of random ASCII art
yes 'printf \\u$[2571+RANDOM%2]'|bash
GWHed/nl2bash
<|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 (GNU specific) Display info on most CPU-intensive processes once and exit.<|im_end|> <|im_start|>assistant top -n 1<|im_end|>
(GNU specific) Display info on most CPU-intensive processes once and exit.
top -n 1
GWHed/nl2bash
<|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 kernel release name.<|im_end|> <|im_start|>assistant uname -r<|im_end|>
Display kernel release name.
uname -r
GWHed/nl2bash
<|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 last 3 characters of variable foo.<|im_end|> <|im_start|>assistant echo $foo | rev | cut -c1-3 | rev<|im_end|>
Display the last 3 characters of variable foo.
echo $foo | rev | cut -c1-3 | rev
GWHed/nl2bash
<|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 last colon-separated field of variable 'var'<|im_end|> <|im_start|>assistant echo "$var" | rev | cut -d: -f1 | rev<|im_end|>
Display the last colon-separated field of variable 'var'
echo "$var" | rev | cut -d: -f1 | rev
GWHed/nl2bash
<|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 last dot-separated field, in this case "com".<|im_end|> <|im_start|>assistant echo 'maps.google.com' | rev | cut -d'.' -f 1 | rev<...
Display the last dot-separated field, in this case "com".
echo 'maps.google.com' | rev | cut -d'.' -f 1 | rev
GWHed/nl2bash
<|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 last slash-separated part of each filename path in file.txt<|im_end|> <|im_start|>assistant rev file.txt | cut -d/ -f1 | rev<|im_e...
Display the last slash-separated part of each filename path in file.txt
rev file.txt | cut -d/ -f1 | rev
GWHed/nl2bash
<|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 last slash-separated part of path, in this case "example".<|im_end|> <|im_start|>assistant basename /usr/local/svn/repos/example<|...
Display the last slash-separated part of path, in this case "example".
basename /usr/local/svn/repos/example
GWHed/nl2bash
<|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 last space-separated field of each line in file.txt<|im_end|> <|im_start|>assistant rev file.txt | cut -d ' ' -f1 | rev<|im_end|>
Display the last space-separated field of each line in file.txt
rev file.txt | cut -d ' ' -f1 | rev
GWHed/nl2bash
<|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 list of all the C files ( fuiles with ".c" extension ) in current folder<|im_end|> <|im_start|>assistant find . -name '*.c' -ls<|im_en...
display list of all the C files ( fuiles with ".c" extension ) in current folder
find . -name '*.c' -ls
GWHed/nl2bash
<|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 list of all the files in the /tmp folder<|im_end|> <|im_start|>assistant find /tmp/ -exec ls "{}" +<|im_end|>
display list of all the files in the /tmp folder
find /tmp/ -exec ls "{}" +
GWHed/nl2bash
<|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 list of all the files in the current directory<|im_end|> <|im_start|>assistant find | xargs ls<|im_end|>
display list of all the files in the current directory
find | xargs ls
GWHed/nl2bash
<|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 list of all the files in the current directory (print0 handles file names with newlines or spaces)<|im_end|> <|im_start|>assistant fin...
display list of all the files in the current directory (print0 handles file names with newlines or spaces)
find -print0 | xargs -0 ls
GWHed/nl2bash
<|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 list of all the files in the current directory which have been accssed in the last 500 days exluding hidden files<|im_end|> <|im_s...
display the list of all the files in the current directory which have been accssed in the last 500 days exluding hidden files
find . -type f \( ! -iname ".*" \) -mtime +500 -exec ls {} \;
GWHed/nl2bash
<|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 list of all the files in the current folder which are empty.<|im_end|> <|im_start|>assistant find . -size 0 -ls<|im_end|>
display list of all the files in the current folder which are empty.
find . -size 0 -ls
GWHed/nl2bash
<|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 list of all the hidden directories in the directory "/dir/to/search/"<|im_end|> <|im_start|>assistant find /dir/to/search -path '*/.*'...
display list of all the hidden directories in the directory "/dir/to/search/"
find /dir/to/search -path '*/.*' -ls
GWHed/nl2bash
<|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 list of all the hidden directories in the directory "/dir/to/search/"<|im_end|> <|im_start|>assistant find /dir/to/search/ -type d -in...
display list of all the hidden directories in the directory "/dir/to/search/"
find /dir/to/search/ -type d -iname ".*" -ls
GWHed/nl2bash
<|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 list of all the hidden files in the directory "/dir/to/search/"<|im_end|> <|im_start|>assistant find /dir/to/search/ -name ".*" -ls<|i...
display list of all the hidden files in the directory "/dir/to/search/"
find /dir/to/search/ -name ".*" -ls
GWHed/nl2bash
<|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 list of all the hidden files in the home folder<|im_end|> <|im_start|>assistant find $HOME -name ".*" -ls<|im_end|>
display list of all the hidden files in the home folder
find $HOME -name ".*" -ls
GWHed/nl2bash
<|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 list of all the hidden regular/normal files in the directory "/dir/to/search/"<|im_end|> <|im_start|>assistant find /dir/to/search/ -t...
display list of all the hidden regular/normal files in the directory "/dir/to/search/"
find /dir/to/search/ -type f -iname ".*" -ls
GWHed/nl2bash
<|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 list of all the normal files excluding hidden files which have been accessed in the last 500 days<|im_end|> <|im_start|>assistant ...
display the list of all the normal files excluding hidden files which have been accessed in the last 500 days
find . -type f -not -name ‘.*’ -mtime +500 -exec ls {} \;
GWHed/nl2bash
<|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 list of all the regular/normal files in the current folder which start with "my"<|im_end|> <|im_start|>assistant find . -name 'my*' -t...
display list of all the regular/normal files in the current folder which start with "my"
find . -name 'my*' -type f -ls
GWHed/nl2bash
<|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 list of all the regular/normal files in the home folder which are bigger than 512 kb<|im_end|> <|im_start|>assistant find /home/ -type...
display list of all the regular/normal files in the home folder which are bigger than 512 kb
find /home/ -type f -size +512k -exec ls -lh {} \;
GWHed/nl2bash
<|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 list of all the regular/normal files in the home folder which are exactly 6579 bytes<|im_end|> <|im_start|>assistant find /home/ -type...
display list of all the regular/normal files in the home folder which are exactly 6579 bytes
find /home/ -type f -size 6579c -exec ls {} \;
GWHed/nl2bash
<|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 list of files ending with '.txt' in the current folder to the terminal twice and output it to the text file "txtlist.txt"<|im_end|> <|...
Display list of files ending with '.txt' in the current folder to the terminal twice and output it to the text file "txtlist.txt"
ls *.txt | tee /dev/tty txtlist.txt
GWHed/nl2bash
<|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 long listing detials of all the files in the folder junk which is in home folder.<|im_end|> <|im_start|>assistant find ~/junk -n...
display the long listing detials of all the files in the folder junk which is in home folder.
find ~/junk -name "*" -exec ls -l {} \;
GWHed/nl2bash
<|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 long listing of all the files/directories owned by the user 'me' under '/tmp' directory tree<|im_end|> <|im_start|>assistant find /tmp...
Display long listing of all the files/directories owned by the user 'me' under '/tmp' directory tree
find /tmp -user me -ls
GWHed/nl2bash
<|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 long listing of all the files in the folder "/myfiles"<|im_end|> <|im_start|>assistant find /myfiles -exec ls -l {} ;<|im_end|>
display long listing of all the files in the folder "/myfiles"
find /myfiles -exec ls -l {} ;
GWHed/nl2bash
<|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 long list of all the files in the folder /home/peter which belong to no user and change the owner,group of all these files (after user...
display long list of all the files in the folder /home/peter which belong to no user and change the owner,group of all these files (after user confirmation) to "peter","peter"
find /home/peter -nouser -exec ls -l {} \; -ok chown peter.peter {} \;
GWHed/nl2bash
<|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 long listing of all the files in the root folder which are bigger than 3KB<|im_end|> <|im_start|>assistant find / -dev -size +3000 -ex...
display long listing of all the files in the root folder which are bigger than 3KB
find / -dev -size +3000 -exec ls -l {} ;
GWHed/nl2bash
<|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 long listing of all the files that have been changed in the last 4 days, daystart is used to compare from the starting of day i.e, at ...
display long listing of all the files that have been changed in the last 4 days, daystart is used to compare from the starting of day i.e, at 00:00
find . -daystart -ctime 4 -ls -type f
GWHed/nl2bash
<|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 long list of all the perl files in the current folder<|im_end|> <|im_start|>assistant find . -name "*.pl" -ls<|im_end|>
display long list of all the perl files in the current folder
find . -name "*.pl" -ls
GWHed/nl2bash
<|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 long listing of all normal/regular files in the current directory which have been modified in the last 2 days.<|im_end|> <|im_start|>a...
display long listing of all normal/regular files in the current directory which have been modified in the last 2 days.
find . -mtime -2 -type f -name "t*" -exec ls -l '{}' \;
GWHed/nl2bash
<|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 long listing of all the regular hidden files in the folder Musica<|im_end|> <|im_start|>assistant find Música/* -type f -name ".*" -ex...
display long listing of all the regular hidden files in the folder Musica
find Música/* -type f -name ".*" -exec ls -l {} \;
GWHed/nl2bash
<|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 long listing of all the symbolic links in the current folder<|im_end|> <|im_start|>assistant find . -type l -exec ls -l {} \;<|im_end|...
display long listing of all the symbolic links in the current folder
find . -type l -exec ls -l {} \;
GWHed/nl2bash
<|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 long listing of all the text files in the current folder<|im_end|> <|im_start|>assistant find . -name "*.txt" -exec ls -la {} \;<|im_e...
display long listing of all the text files in the current folder
find . -name "*.txt" -exec ls -la {} \;
GWHed/nl2bash
<|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 long listing of all the text files in the current folder (plus at the end executes quickly by sending bulk data as input to the comman...
display long listing of all the text files in the current folder (plus at the end executes quickly by sending bulk data as input to the command in exec)
find . -name "*.txt" -exec ls -la {} +
GWHed/nl2bash
<|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 long listing of first 10 directories in the current folder<|im_end|> <|im_start|>assistant find . -type d -ls | head<|im_end|>
display long listing of first 10 directories in the current folder
find . -type d -ls | head
GWHed/nl2bash
<|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 manual page of find<|im_end|> <|im_start|>assistant man find<|im_end|>
display the manual page of find
man find
GWHed/nl2bash
<|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 mime type of file specified by variable "file"<|im_end|> <|im_start|>assistant file -ib "$file"<|im_end|>
Display mime type of file specified by variable "file"
file -ib "$file"
GWHed/nl2bash
<|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 name and value of 'variable' if it exists.<|im_end|> <|im_start|>assistant env | grep '^variable='<|im_end|>
Display name and value of 'variable' if it exists.
env | grep '^variable='
GWHed/nl2bash
<|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 named characters in "line1\r\nline2"<|im_end|> <|im_start|>assistant echo -e "line1\r\nline2" | od -a<|im_end|>
Display the named characters in "line1\r\nline2"
echo -e "line1\r\nline2" | od -a
GWHed/nl2bash
<|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 name of all directories in the current folder and do not search in sub directories<|im_end|> <|im_start|>assistant find . -type d ...
display the name of all directories in the current folder and do not search in sub directories
find . -type d -maxdepth 1 -exec basename {} \;
GWHed/nl2bash
<|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 name of all directories in the current folder and do not search in sub directories ( mindepth ensures that the current folder name...
display the name of all directories in the current folder and do not search in sub directories ( mindepth ensures that the current folder name is removed from the output)
find . -type d -maxdepth 1 -mindepth 1 -exec basename {} \;
GWHed/nl2bash
<|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 names without extensions of all the data files in current folder which have not been changed in the last 60 mins<|im_end|> <|im_st...
display the names without extensions of all the data files in current folder which have not been changed in the last 60 mins
find . -prune -name "*.dat" -type f -cmin +60 |xargs -i basename {} \;
GWHed/nl2bash
<|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 names without extensions of all the data files in current folder which have not been changed in the last 60 mins<|im_end|> <|im_st...
display the names without extensions of all the data files in current folder which have not been changed in the last 60 mins
find ./ -name "*.dat" -type f -cmin +60 -exec basename {} \;
GWHed/nl2bash
<|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 number of lines in all the ".c" files in the current folder<|im_end|> <|im_start|>assistant find . -name "*.c" -exec wc -l {} \;<|...
display the number of lines in all the ".c" files in the current folder
find . -name "*.c" -exec wc -l {} \;
GWHed/nl2bash
<|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 number of lines in all the ".c" files in the current folder<|im_end|> <|im_start|>assistant find . -name "*.c" -print | xargs wc -...
display the number of lines in all the ".c" files in the current folder
find . -name "*.c" -print | xargs wc -l
GWHed/nl2bash
<|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 number of lines in all the ".c" files in the current folder<|im_end|> <|im_start|>assistant find . -name "*.c" -print0 | xargs -0 ...
display the number of lines in all the ".c" files in the current folder
find . -name "*.c" -print0 | xargs -0 wc -l
GWHed/nl2bash
<|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 number of lines in all the files in the current folder<|im_end|> <|im_start|>assistant find . -exec wc -l {} \;<|im_end|>
display the number of lines in all the files in the current folder
find . -exec wc -l {} \;
GWHed/nl2bash
<|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 number of lines in all the files in the current folder<|im_end|> <|im_start|>assistant find . -name '*' | xargs wc -l<|im_end|>
display the number of lines in all the files in the current folder
find . -name '*' | xargs wc -l
GWHed/nl2bash
<|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 number of lines in all the header files in the current folder<|im_end|> <|im_start|>assistant find . -name "*.h" -print | xargs wc...
display the number of lines in all the header files in the current folder
find . -name "*.h" -print | xargs wc -l
GWHed/nl2bash
<|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 number of lines in all regular files under current directory tree and also show the total count<|im_end|> <|im_start|>assistant fi...
Display the number of lines in all regular files under current directory tree and also show the total count
find . -type f -exec wc -l {} +
GWHed/nl2bash
<|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 number of regular files under current directory tree<|im_end|> <|im_start|>assistant find . -type f -exec echo {} \; | wc -l<|im_e...
Display the number of regular files under current directory tree
find . -type f -exec echo {} \; | wc -l
GWHed/nl2bash
<|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 number of regular files under current directory tree<|im_end|> <|im_start|>assistant find . -type f -print0 | tr -dc '\0' | wc -c<...
Display the number of regular files under current directory tree
find . -type f -print0 | tr -dc '\0' | wc -c
GWHed/nl2bash
<|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 only the file names of all the files which end with ".deb"<|im_end|> <|im_start|>assistant find . -name '*.deb' -printf "%f\n"<|im_end...
display only the file names of all the files which end with ".deb"
find . -name '*.deb' -printf "%f\n"
GWHed/nl2bash
<|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 only first and second dot-separated numbers of kernel version, ie. 4.4<|im_end|> <|im_start|>assistant uname -r | cut -d. -f1-2<|im_en...
Display only first and second dot-separated numbers of kernel version, ie. 4.4
uname -r | cut -d. -f1-2
GWHed/nl2bash
<|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 permissions, user, group, and full path for each file in the current directory tree as a list<|im_end|> <|im_start|>assistant tree -p ...
Display permissions, user, group, and full path for each file in the current directory tree as a list
tree -p -u -g -f -i
GWHed/nl2bash
<|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 (GNU specific) Display process information for all processes whose command line contains "processname".<|im_end|> <|im_start|>assistant top -b...
(GNU specific) Display process information for all processes whose command line contains "processname".
top -b -n1 | grep processname
GWHed/nl2bash
<|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 (GNU specific) Display process information (batch mode, display once) with full command lines.<|im_end|> <|im_start|>assistant top -b -n1 -c<|...
(GNU specific) Display process information (batch mode, display once) with full command lines.
top -b -n1 -c
GWHed/nl2bash
<|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 Displays process tree of a process with id 'PID', showing parent process and processes id.<|im_end|> <|im_start|>assistant pstree -p -s PID<|i...
Displays process tree of a process with id 'PID', showing parent process and processes id.
pstree -p -s PID
GWHed/nl2bash
<|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 sizes and filepaths of all files/directories sorted in ascending order of size<|im_end|> <|im_start|>assistant du -a --max-depth=1...
Display the sizes and filepaths of all files/directories sorted in ascending order of size
du -a --max-depth=1 | sort -n
GWHed/nl2bash
<|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 sizes and filepaths of all files/directories sorted in descending order of size<|im_end|> <|im_start|>assistant du -a -h --max-dep...
Display the sizes and filepaths of all files/directories sorted in descending order of size
du -a -h --max-depth=1 | sort -hr
GWHed/nl2bash
<|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 sizes and filepaths of all files/directories with '.undo' extension under current directory tree<|im_end|> <|im_start|>assistant f...
Display the sizes and filepaths of all files/directories with '.undo' extension under current directory tree
find -name *.undo -print0 | du -hc --files0-from=-
GWHed/nl2bash
<|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 standard input as octal bytes<|im_end|> <|im_start|>assistant cat | od -b<|im_end|>
Display standard input as octal bytes
cat | od -b
GWHed/nl2bash
<|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 standard input as printable characters or backslash escapes with no addressing radix<|im_end|> <|im_start|>assistant od -cAn;<|im_end|...
Display standard input as printable characters or backslash escapes with no addressing radix
od -cAn;
GWHed/nl2bash
<|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 Displays status of currently active network interfaces.<|im_end|> <|im_start|>assistant ifconfig<|im_end|>
Displays status of currently active network interfaces.
ifconfig
GWHed/nl2bash
<|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 summary of each specified file in human readable form<|im_end|> <|im_start|>assistant du -sh *<|im_end|>
Display summary of each specified file in human readable form
du -sh *
GWHed/nl2bash
<|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 table of files with their name, owner, and size in bytes.<|im_end|> <|im_start|>assistant find . -printf 'Name: %f Owner: %u %s bytes\...
display table of files with their name, owner, and size in bytes.
find . -printf 'Name: %f Owner: %u %s bytes\n'
GWHed/nl2bash
<|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 top 11 files along with the last access date for all the files in the file system<|im_end|> <|im_start|>assistant find / -type f -prin...
display top 11 files along with the last access date for all the files in the file system
find / -type f -printf "\n%AD %AT %p" | head -n 11
GWHed/nl2bash
<|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 top 20 biggest files in the current folder which are present in the same partition as that of the current folder<|im_end|> <|im_st...
display the top 20 biggest files in the current folder which are present in the same partition as that of the current folder
find . -xdev -printf ‘%s %p\n’ |sort -nr|head -20
GWHed/nl2bash
<|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 top 500 mp4 and flv files under current directory along with their timestamps in the sorted order of time<|im_end|> <|im_start|>assist...
Display top 500 mp4 and flv files under current directory along with their timestamps in the sorted order of time
find . -regex ".*\.\(flv\|mp4\)" -type f -printf '%T+ %p\n' | sort | head -n 500
GWHed/nl2bash
<|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 total count of all the files/directories with '.old' extension under current directory tree<|im_end|> <|im_start|>assistant find ....
Display the total count of all the files/directories with '.old' extension under current directory tree
find . -name “*.old” -print | wc -l
GWHed/nl2bash
<|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 type of all the regular/normal files in the entire file system<|im_end|> <|im_start|>assistant find / -type f -print | xargs file<...
display the type of all the regular/normal files in the entire file system
find / -type f -print | xargs file
GWHed/nl2bash
<|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 version of find command<|im_end|> <|im_start|>assistant find -version<|im_end|>
display the version of find command
find -version
GWHed/nl2bash
<|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 who is logged on and what they are doing<|im_end|> <|im_start|>assistant w<|im_end|>
Display who is logged on and what they are doing
w
GWHed/nl2bash
<|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 Download "Louis Theroux's LA Stories" using rsync over ssh<|im_end|> <|im_start|>assistant rsync -ave ssh '"Louis Theroux"''"'"'"'"''"s LA Sto...
Download "Louis Theroux's LA Stories" using rsync over ssh
rsync -ave ssh '"Louis Theroux"''"'"'"'"''"s LA Stories"'
GWHed/nl2bash
<|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 download a file "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" using cookies "oraclelicense=accept-securebackup-cookie"<|im_...
download a file "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" using cookies "oraclelicense=accept-securebackup-cookie"
curl -L -C - -b "oraclelicense=accept-securebackup-cookie" -O http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip
GWHed/nl2bash
<|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 download content from "http://127.0.0.1:8000" and output to "index.html"<|im_end|> <|im_start|>assistant curl http://127.0.0.1:8000 -o index.h...
download content from "http://127.0.0.1:8000" and output to "index.html"
curl http://127.0.0.1:8000 -o index.html
GWHed/nl2bash
<|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 download contents from "https://raw.github.com/creationix/nvm/master/install.sh" and execute<|im_end|> <|im_start|>assistant curl https://raw....
download contents from "https://raw.github.com/creationix/nvm/master/install.sh" and execute
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
GWHed/nl2bash
<|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 download contents from "https://www.npmjs.com/install.sh" and execute<|im_end|> <|im_start|>assistant curl https://www.npmjs.com/install.sh | ...
download contents from "https://www.npmjs.com/install.sh" and execute
curl https://www.npmjs.com/install.sh | sh
GWHed/nl2bash
<|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 download contents of a website "https://get.scoop.sh"<|im_end|> <|im_start|>assistant curl -L https://get.scoop.sh<|im_end|>
download contents of a website "https://get.scoop.sh"
curl -L https://get.scoop.sh
GWHed/nl2bash
<|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 "/dev/ttySomething" in both hex and text<|im_end|> <|im_start|>assistant od -t x1 -t a /dev/ttySomething<|im_end|>
Dump "/dev/ttySomething" in both hex and text
od -t x1 -t a /dev/ttySomething
GWHed/nl2bash
<|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 "filename" as 2 byte wide hexadecimal and printable characters<|im_end|> <|im_start|>assistant od -xc filename<|im_end|>
Dump "filename" as 2 byte wide hexadecimal and printable characters
od -xc filename
GWHed/nl2bash
<|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 "testscript.sh" as 2 byte hexadecimale, printable characters, and octal values<|im_end|> <|im_start|>assistant od -xcb testscript.sh<|im_...
Dump "testscript.sh" as 2 byte hexadecimale, printable characters, and octal values
od -xcb testscript.sh
GWHed/nl2bash
<|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 the character output of "echo 'hi'"<|im_end|> <|im_start|>assistant echo 'hi' | od -c<|im_end|>
Dump the character output of "echo 'hi'"
echo 'hi' | od -c
GWHed/nl2bash
<|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 the character output of 'echo `echo "Ho ho ho"`'<|im_end|> <|im_start|>assistant echo `echo "Ho ho ho"` | od -c<|im_end|>
Dump the character output of 'echo `echo "Ho ho ho"`'
echo `echo "Ho ho ho"` | od -c
GWHed/nl2bash
<|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 Duplicate directory tree under /mnt/usr/lib to /usr but creating symlinks to files instead of copying them.<|im_end|> <|im_start|>assistant cp...
Duplicate directory tree under /mnt/usr/lib to /usr but creating symlinks to files instead of copying them.
cp -rs /mnt/usr/lib /usr/
GWHed/nl2bash
<|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 Edit the cron job list for user 'wwwrun' using default editor specified by the EDITOR environment variable, or /usr/bin/editor if no default e...
Edit the cron job list for user 'wwwrun' using default editor specified by the EDITOR environment variable, or /usr/bin/editor if no default editor is specified.
sudo crontab -u wwwrun -e
GWHed/nl2bash