|
Text,Code |
|
Display hidden files along with normal files,ls -a |
|
Zip configuration.ini ignoring directory structure, zip -j presentation.pptx.zip configuration.ini |
|
Ignore paths when extracting files from contract.pdf.zip, unzip -j contract.pdf.zip |
|
Extract files from image.jpg.zip and change to documents_backup, unzip -C documents_backup image.jpg.zip |
|
"Recursive copying is used to move music to documents_archive, maintaining attributes, and making a backup.", cp -r -p -b music documents_archive |
|
"Extract executable.exe.zip, then update your files with the latest versions.", unzip -U executable.exe.zip |
|
Extract database.sql.zip with no password to directory projects_backup,unzip -d projects_backup database.sql.zip |
|
"Display every file, even those that are hidden.",ls -a |
|
Make a fresh archive with executable.exe.zip from executable.exe, zip -c executable.exe.zip executable.exe |
|
Display document.docx with suppressed empty lines, cat -s document.docx |
|
List the files in order of modification date.,ls -t |
|
"Make a copy of presentation.pptx in images_backup, but before overwriting, get permission.", cp -i presentation.pptx images_backup |
|
Make new archive photo.png.zip with audio.mp3, zip -c photo.png.zip audio.mp3 |
|
Freshen policy.pdf in spreadsheet.xlsx.zip, zip -f spreadsheet.xlsx.zip policy.pdf |
|
Zip proposal.docx without any folder organization, zip -j configuration.ini.zip proposal.docx |
|
"Sort all files that start with ""data"" backwards.",ls -r data* |
|
Transfer document.docx to music_library while keeping all of its properties., cp -p document.docx music_library |
|
Display database.sql with tabs as ^I, cat -T database.sql |
|
"Create directory ""scripts"" and find files matching pattern ""*.exe"" in it.","mkdir scripts && find scripts -name ""**.exe*""" |
|
Display the line ends for memo.txt, cat -E memo.txt |
|
List each file on a single line.,ls -1 |
|
Look for block devices, find . -type b |
|
"Generate directory ""documents"" and list contents of ""documents"".",mkdir documents && ls documents |
|
"Recursive copying is used to move projects to scripts_backup, maintaining attributes, and making a backup.", cp -r -p -b projects scripts_backup |
|
Put script.py in the designated directory. thinking about it as a file rather than a directory,mv -T script.py temp |
|
Display video.mp4 with line endings, cat -E video.mp4 |
|
"Uncompress configuration.ini.zip, testing archive integrity only, verbose output, and listing files only to directory templates_backup",unzip -t -v -l -d templates_backup configuration.ini.zip |
|
"Disentangle memo.txt.zip, preserving permissions, overwriting existing files, and listing files only to directory downloads_archive",unzip -K -o -l -d downloads_archive memo.txt.zip |
|
"Release memo.txt.zip, extracting symbolic links and listing files only to directory videos_backup",unzip -l -d videos_backup memo.txt.zip |
|
"Retrieve script.py.zip, overwriting existing files, and only extracting files matching pattern '*.jpg' to directory music_library",unzip -o -j -d music_library script.py.zip '*.jpg' |
|
Extract files with verbose output from database.sql.zip, unzip -v database.sql.zip |
|
Files will be shown sorted by size.,ls -S |
|
File compression with gzip, find . -type f -execdir gzip {} \ |
|
Locate symbolic links, find . -type l |
|
Clone report.pdf to reports_archive and prompt for permission to overwrite, cp -i report.pdf reports_archive |
|
List files sorted by size and modification time with colored output,ls -SltG |
|
Look for figurative connections., find . -type l |
|
Check for updates and add proposal.docx to executable.exe.zip, zip -f executable.exe.zip proposal.docx |
|
Extract files and overwrite existing files from document.docx.zip, unzip -o document.docx.zip |
|
Generate a hard link of report.pdf in photos_backup, cp -l report.pdf photos_backup |
|
Compress projects and its contents, zip -r projects projects |
|
Zip memo.txt without directory structure, zip -j audio.mp3.zip memo.txt |
|
"Archive files image.jpg, document.docx, photo.png into document.docx.zip, preserving paths",zip -r document.docx.zip image.jpg document.docx photo.png |
|
"While maintaining its properties, copy contract.pdf to projects_backup and establish a hard link.", cp -p -l contract.pdf projects_backup |
|
"Package files video.mp4, report.pdf, database.sql into image.jpg.zip, excluding '*.tmp' files",zip -x '*.tmp' -r image.jpg.zip video.mp4 report.pdf database.sql |
|
"Compress files video.mp4, audio.mp3, policy.pdf into memo.txt.zip, quietly, preserving paths, including empty directories",zip -q -r0 memo.txt.zip video.mp4 audio.mp3 policy.pdf |
|
Check for corruption with configuration.ini.zip., unzip -t configuration.ini.zip |
|
"Without asking, make a backup, and force copy executable.exe to videos_backup while maintaining attributes", cp -f -p -b executable.exe videos_backup |
|
"If the parent directories and the directories scripts, presentations, and reports don't already exist, create them with verbose output.",mkdir -p -v scripts && mkdir -p -v presentations && mkdir -p -v reports |
|
"Package files executable.exe, document.docx, report.pdf into configuration.ini.zip, excluding '*.tmp' files, preserving paths",zip -x '*.tmp' -r configuration.ini.zip executable.exe document.docx report.pdf |
|
"While extracting files, extract image.jpg.zip", unzip -q image.jpg.zip |
|
"Display every file, even those that are hidden.",ls -a |
|
Filter files in templates based on *.mp3 and move them to downloads_archive,"grep ""*.mp3"" templates/* | xargs -I {} mv {} downloads_archive" |
|
Extract only newer files from spreadsheet.xlsx.zip, unzip -U spreadsheet.xlsx.zip |
|
Enable colorized output,ls -G |
|
Look for files with name policy.pdf, find . -name policy.pdf |
|
Extract files silently from spreadsheet.xlsx.zip, unzip -q spreadsheet.xlsx.zip |
|
Show hidden files and folders in a lengthy format with rich colours and details.,ls -alG |
|
"Create directory ""scripts"" and find files matching pattern ""*.exe"" in it.","mkdir scripts && find scripts -name ""**.exe*""" |
|
"Forcefully move presentation.pptx to photos, overwriting if necessary",mv -f presentation.pptx photos |
|
Files from script.py.zip should be extracted into output., unzip -d output script.py.zip |
|
Search for files with names containing 'image' and with read permissions for the group,"find . -type f -name ""*image*"" -perm /g=r" |
|
Add and move executable.exe to report.pdf.zip, zip -m report.pdf.zip executable.exe |
|
"List all the contents in a directory, including any hidden files.",ls -a |
|
Provide a human-readable list of file sizes.,ls -h |
|
Show non-blank line numbers for document.docx, cat -b document.docx |
|
Copy document.docx to output while preserving its attributes, cp -p document.docx output |
|
"List all files and directories, including hidden ones",ls -a |
|
Move database.sql to documents and provide verbose output,mv -v database.sql documents |
|
Show report.pdf contents with repeated empty lines suppressed, cat -s report.pdf |
|
Check configuration.ini.zip for errors, zip -T configuration.ini.zip |
|
Delete files modified more than 1 year ago, find . -type f -mtime +365 -delete |
|
"Transfer configuration.ini to output and, if required, prompt before overwriting",cp --interactive configuration.ini output |
|
Move files to videos, find . -name spreadsheet.xlsx -exec mv {} videos \ |
|
Find the presentation.pptx files., find . -name presentation.pptx |
|
"Make a list of the files in the ""presentations"" directory after creating it.",mkdir presentations && cp presentations/* projects_backup |
|
Sort files by size and modification time in reverse order with colored output,ls -SltrG |
|
Locate files smaller than 100KB, find . -size -100k |
|
"Archive files photo.png, executable.exe, presentation.pptx into presentation.pptx.zip, excluding '*.tmp' files, using compression level 9",zip -x '*.tmp' -9 presentation.pptx.zip photo.png executable.exe presentation.pptx |
|
"Move music to archive, making a backup of all currently stored files.", cp -b -r music archive |
|
Print proposal.docx with tabs represented as ^I, cat -T proposal.docx |
|
Search for files with names ending in '.doc' and larger than 500KB,"find . -type f -name ""*.doc"" -size +500k" |
|
List the contents of photo.png.zip., unzip -l photo.png.zip |
|
Print inode numbers for each file,ls -i |
|
List video.mp4 contents with suppression of repeated empty lines, cat -s video.mp4 |
|
Show the contents of executable.exe with line numbers,cat -n executable.exe |
|
"If the parent directories and directory logs don't already exist, create them.",mkdir -p logs |
|
"Using attribute preservation, clone image.jpg to projects_backup, establish a hard link, and create a backup", cp -p -l -b image.jpg projects_backup |
|
Move files to documents, find . -name document.docx -exec mv {} documents \ |
|
Show spreadsheet.xlsx in tabbed mode as \I, cat -T spreadsheet.xlsx |
|
Show directory names without contents,ls -d |
|
List files in a lengthy format with output that is coloured.,ls -lG |
|
Extraction of image.jpg.zip in full, unzip -v image.jpg.zip |
|
Locate named pipes, find . -type p |
|
Show all control characters for presentation.pptx, cat -A presentation.pptx |
|
"When extracting files from report.pdf.zip, ignore paths.", unzip -j report.pdf.zip |
|
"Search for files with read, write, and execute permissions for the user",find . -type f -perm -700 |
|
"Uncompress configuration.ini.zip, testing archive integrity only, verbose output, and listing files only to directory templates_backup",unzip -t -v -l -d templates_backup configuration.ini.zip |
|
Take the files out of proposal.docx.zip. disregarding the directory structure, unzip -j proposal.docx.zip |
|
Show comprehensive file information,ls -l |
|
Compress projects recursively, zip -r projects projects |
|
Move contract.pdf into audio.mp3.zip, zip -m audio.mp3.zip contract.pdf |
|
Enable output with colors,ls -G |
|
Show report.pdf with characters that don't print, cat -v report.pdf |
|
"List each subdirectory in detail recursively, then tally the total number of directories.","ls -Rd | grep ""/$"" | wc -l" |
|
Make a backup of the current files and copy configuration.ini to reports_archive., cp -b -p configuration.ini reports_archive |
|
Move contract.pdf with attribute preservation to scripts_backup, cp -p contract.pdf scripts_backup |
|
"Archive files image.jpg, document.docx, photo.png into document.docx.zip, preserving paths",zip -r document.docx.zip image.jpg document.docx photo.png |
|
Compress projects recursively, zip -r projects projects |
|
"Compress files video.mp4, audio.mp3, policy.pdf into memo.txt.zip, quietly, preserving paths, including empty directories",zip -q -r0 memo.txt.zip video.mp4 audio.mp3 policy.pdf |
|
Turn on colour output.,ls -G |
|
Print the contents of presentation.pptx with non-blank line numbering., cat -b presentation.pptx |
|
Display characters for spreadsheet.xlsx that aren't printed, cat -v spreadsheet.xlsx |
|
List contents of memo.txt with all control characters displayed, cat -A memo.txt |
|
Move the files to reports_archive after extracting them from temp that match *.mp4.,"tar -cvf - -C temp.zip . | tar xvf - -C reports_archive --wildcards ""*.mp4""" |
|
Display all files including hidden ones,ls -a |
|
"Clone image.jpg to images_backup with attribute preservation, creating a hard link, and making a backup", cp -p -l -b image.jpg images_backup |
|
Verify image.jpg.zip's integrity., unzip -t image.jpg.zip |
|
"List subdirectories recursively, each with a colour and full description.",ls -RdlG |
|
Verify integrity of audio.mp3.zip, zip -T audio.mp3.zip |
|
Present file sizes in an easily readable way.,ls -h |
|
Make a verbose output directory called photos.,mkdir -v photos |
|
Print photo.png without any warning errors, cat -q photo.png |
|
Show image.jpg with line numbers that aren't blank., cat -b image.jpg |
|
"Before replacing downloads with script.py, prompt",mv -i script.py downloads |
|
Erase policy.pdf from proposal.docx.zip, zip -d proposal.docx.zip policy.pdf |
|
Extract files from document.docx.zip and overwrite existing files, unzip -o document.docx.zip |
|
Prompt for confirmation before moving document.docx to presentations,mv -i document.docx presentations |
|
Replace archives with photo.png only if it's newer or doesn't already exist,mv -u photo.png archives |
|
Files should be displayed in reverse order.,ls -r |
|
Look for block devices, find . -type b |
|
Take remove the files from spreadsheet.xlsx.zip that provide verbose output., unzip -v spreadsheet.xlsx.zip |
|
Mirror proposal.docx to music_library and overwrite existing files without seeking permission, cp -f proposal.docx music_library |
|
"Ask before replacing configuration.ini in downloads, treat destination as file, and show verbose feedback",mv -TiV configuration.ini downloads |
|
"Create a directory named 'presentations', copy a file named 'audio.mp3' into it, and then create a symbolic link named 'link' to the file.",mkdir /presentations/ | cp /audio.mp3 /presentations/ | ln -s /presentations/ /link/ |
|
Extract files with verbose mode enabled from database.sql.zip, unzip -v database.sql.zip |
|
"Extract executable.exe.zip, then update your files with the latest versions.", unzip -U executable.exe.zip |
|
Change directory to videos_backup and extract files from photo.png.zip, unzip -C videos_backup photo.png.zip |
|
Search for files between 1GB and 2GB in size, find . -size +1G -size -2G |
|
Search for files modified exactly 30 days ago, find . -mtime 30 |
|
Delete files with name memo.txt, find . -name memo.txt -exec rm {} \ |
|
Examine image.jpg.zip for consistency., unzip -t image.jpg.zip |
|
Replicate document.docx to projects_backup with hard links, cp -l document.docx projects_backup |
|
"Move audio.mp3 to photos_backup, verify overwrite interactively, maintain attributes, and make a backup.", cp -i -p -b audio.mp3 photos_backup |
|
Print database.sql contents with line endings, cat -E database.sql |
|
"Display files individually, one per line",ls -1 |
|
List each line ending in image.jpg in the contents., cat -E image.jpg |
|
Make a backup of the current files and copy proposal.docx to logs_archive.,cp -b proposal.docx logs_archive |
|
"Replicate contract.pdf to videos_backup while retaining its attributes, creating a hard link, and making a backup", cp -p -l -b contract.pdf videos_backup |
|
"Using attribute preservation, clone proposal.docx to templates_backup, establish a hard link, and create a backup", cp -p -l -b proposal.docx templates_backup |
|
Files in backups should be sorted by size before being moved to photos_backup.,ls -S backups | xargs -I {} mv backups/{} photos_backup |
|
Display proposal.docx with non-blank line numbers, cat -b proposal.docx |
|
Move report.pdf to logs only if it's newer or doesn't already exist,mv -u report.pdf logs |
|
Verbose: Move database.sql to logs,mv -v database.sql logs |
|
Sort files by the date they were last modified.,ls -t |
|
Transfer presentation.pptx to documents_backup and interactively confirm overwrite while preserving attributes and creating a backup, cp -i -p -b presentation.pptx documents_backup |
|
Show file information in long listing format,ls -l |
|
Check for updates and add proposal.docx to presentation.pptx.zip, zip -u presentation.pptx.zip proposal.docx |
|
Find files with names containing 'data' and modified more than 30 days ago,"find . -type f -name ""*data*"" -mtime +30" |
|
Remove presentation.pptx from proposal.docx.zip, zip -d proposal.docx.zip presentation.pptx |
|
"Make a backup of database.sql, regard the destination as a file, don't overwrite, and show verbose output.",mv -bnvT database.sql presentations |
|
Extraction of files from report.pdf.zip enabling verbose mode, unzip -v report.pdf.zip |
|
Change the default order of sorting.,ls -r |
|
Take the files out of proposal.docx.zip. disregarding the directory structure, unzip -j proposal.docx.zip |
|
Seek out blocking gadgets, find . -type b |
|
"When zipping, disregard paths presentation.pptx.", zip -j report.pdf.zip presentation.pptx |
|
"Concatenate document.docx and document.docx, numbering all output lines and showing non-printing characters",cat -n -v document.docx document.docx |
|
Just show directories.,ls -d |
|
"Transfer database.sql firmly to projects, ask permission before overwriting, and only move if a newer version is available.",mv -fiu database.sql projects |
|
Transfer video.mp4 to scripts as a regular file,mv -T video.mp4 scripts |
|
Show tabs as ^I for database.sql, cat -T database.sql |
|
"Duplicate database.sql to logs_archive and keep attributes unchanged, creating a hard link, and making a backup", cp -p -l -b database.sql logs_archive |
|
"Generate directory ""documents"" and list contents of ""documents"".",mkdir documents && ls documents |
|
Zip report.pdf without directory structure, zip -j report.pdf.zip report.pdf |
|
Place contract.pdf inside of the archive spreadsheet.xlsx.Zip, zip -u spreadsheet.xlsx.zip contract.pdf |
|
Turn on output that is coloured.,ls -G |
|
List the lines that don't include a blank in policy.pdf, cat -b policy.pdf |
|
Ignore the directory structure and extract the files from contract.pdf.zip., unzip -j contract.pdf.zip |
|
Move proposal.docx to photos_backup and request confirmation from the user to see if the files are there.,cp -i proposal.docx photos_backup |
|
Mirror spreadsheet.xlsx to backup and backup existing files, cp -b -p spreadsheet.xlsx backup |
|
Show line numbers for database.sql that are not blank., cat -b database.sql |
|
Duplicate documents to output and include all subdirectories, cp -r documents output |
|
"If proposal.docx is more recent, update it in audio.mp3.zip.", zip -f audio.mp3.zip proposal.docx |
|
Display file sizes in a format that is easy to read,ls -h |
|
Extract files without directory structure from image.jpg.zip, unzip -j image.jpg.zip |
|
List the files in reverse order based on size and modification time.,ls -Sltr |
|
Display contract.pdf with non-printing characters, cat -v contract.pdf |
|
Seek for files bearing the document.docx name., find . -name document.docx |
|
Make proposal.docx.zip with proposal.docx in it., zip -c proposal.docx.zip proposal.docx |
|
Examine policy.pdf.zip for mistakes., zip -T policy.pdf.zip |
|
Delete files modified more than 1 year ago, find . -type f -mtime +365 -delete |
|
"When zipping, disregard paths proposal.docx.", zip -j video.mp4.zip proposal.docx |
|
Look for files exactly 50 bytes in size, find . -size 50c |
|
Search for standard files., find . -type f |
|
"In executable.exe, update configuration.ini.zip If more recent", zip -f executable.exe.zip configuration.ini |
|
Extract and update files with newer versions from presentation.pptx.zip, unzip -U presentation.pptx.zip |
|
"List subdirectories recursively, each with a colour and full description.",ls -RdlG |
|
Make a fresh archive with executable.exe.zip from executable.exe, zip -c executable.exe.zip executable.exe |
|
Take files out of executable.exe.zip and replace any files that already exist., unzip -o executable.exe.zip |
|
"Transfer audio.mp3 forcefully to reports, asking for confirmation, and treating destination as a file",mv -ifT audio.mp3 reports |
|
Duplicate document.docx to archive keeping all attributes,cp -a document.docx archive |
|
Search for files with names starting with 'data' and not owned by the user 'admin',"find . -type f -name ""data*"" ! -user admin" |
|
List file sizes in a manner that is comprehensible to people.,ls -h |
|
Show file sizes in a readable manner,ls -h |
|
Display the line counts for script.py, cat -n script.py |
|
Verbose extraction of contract.pdf.zip, unzip -v contract.pdf.zip |
|
Transfer script.py to photos_backup while keeping all properties intact.,cp -a script.py photos_backup |
|
Recursively list the directory tree,ls -R |
|
Display all files and directories recursively,ls -R |
|
"Zip the contents of the newly created directory ""backups"" into the file ""spreadsheet.xlsx.zip"".",mkdir backups && zip spreadsheet.xlsx.zip backups/* |
|
"Transfer audio.mp3 forcefully to reports, asking for confirmation, and treating destination as a file",mv -ifT audio.mp3 reports |
|
Print database.sql while suppressing the output from the buffer., cat -u database.sql |
|
"List subdirectories recursively, providing coloured output and comprehensive details.",ls -Rdl |
|
Make a copy of policy.pdf and obliterate the current files in documents_backup., cp -f policy.pdf documents_backup |
|
Extract memo.txt that is encrypted.Zip file protected with '*.mp3', unzip -P *.mp3 memo.txt.zip |
|
Mirror configuration.ini to images_backup with attributes intact and creating a hard link, cp -p -l configuration.ini images_backup |
|
Show directory contents recursively,ls -R |
|
Show suppressed buffered output for image.jpg, cat -u image.jpg |
|
"Make a backup copy of spreadsheet.xlsx and duplicate it to templates_backup with user approval to overwrite, preserve attributes, and overwrite", cp -i -p -b spreadsheet.xlsx templates_backup |
|
Extract the files from script.py.zip by changing the directory to output., unzip -C output script.py.zip |
|
Find files with names containing 'report' and not executable by others,"find . -type f -name ""*report*"" ! -perm -o=x" |
|
Output the first 25 lines of configuration.ini,cat configuration.ini | head -n 25 |
|
"Create directory ""templates"" and move files matching pattern ""*.py"" to it.",mkdir templates && mv **.py* templates |
|
"Compress files proposal.docx, report.pdf, contract.pdf into database.sql.zip, quietly, using password 'secure123', preserving paths",zip -q -r -P secure123 database.sql.zip proposal.docx report.pdf contract.pdf |
|
Extract files from photos.zip matching *.py and move to logs_archive,"tar -cvf - -C photos.zip . | tar xvf - -C logs_archive --wildcards ""*.py""" |
|
"Without showing the results, extract video.mp4.zip", unzip -q video.mp4.zip |
|
Transfer executable.exe to projects_backup while maintaining attributes,cp -a executable.exe projects_backup |
|
"Unarchive video.mp4.zip, overwriting existing files, to directory photos_backup",unzip -o -d photos_backup video.mp4.zip |
|
Only use configuration.ini in place of scripts if it is less than or equal to that directory.,mv -u configuration.ini scripts |
|
Display file sizes in human-readable form,ls -h |
|
Change the default order of sorting.,ls -r |
|
Compress files using gzip, find . -type f -exec gzip {} \ |
|
Transfer temp and its contents to logs_archive recursively, cp -r temp logs_archive |
|
"Ask before replacing report.pdf in backups, treat destination as file, and move only if newer",mv -iTu report.pdf backups |
|
"Transfer presentations to music_library and, if required, prompt before overwriting",cp -ir presentations music_library |
|
List files in reverse order of modification time,ls -r |
|
"Move configuration.ini to documents, prompting for confirmation",mv -i configuration.ini documents |
|
"In reports_archive, prompt before overwriting memo.txt.", cp -i memo.txt reports_archive |
|
"Prior to files, list folders.",ls --group-directories-first |
|
"Archive files presentation.pptx, presentation.pptx, report.pdf into memo.txt.zip, using compression level 6, excluding '*.tmp' files",zip -6 -x '*.tmp' memo.txt.zip presentation.pptx presentation.pptx report.pdf |
|
Extract files from memo.txt.zip and overwrite existing files, unzip -o memo.txt.zip |
|
Files from configuration.ini.zip should be extracted into documents_backup., unzip -d documents_backup configuration.ini.zip |
|
"Create directory ""templates"" and remove files matching pattern ""*.mp3"".",mkdir templates && rm **.mp3* |
|
List files in reverse order of their names,ls -r |
|
Search for files with names containing 'image' and with read permissions for the group,"find . -type f -name ""*image*"" -perm /g=r" |
|
"List every file with the word ""backup"" in its name, together with all relevant details.",ls -l *backup* |
|
Move image.jpg to proposal.docx.zip and add it., zip -m proposal.docx.zip image.jpg |
|
List files sorted by size and modification time in reverse order with colored output,ls -SltrG |
|
List files in long format with colored output,ls -lG |
|
Take remove the files from database.sql.zip that provide verbose output., unzip -v database.sql.zip |
|
Output the first 30 lines of proposal.docx,cat proposal.docx | head -n 30 |
|
"Extract policy.pdf.zip, but only the most recent files.", unzip -U policy.pdf.zip |
|
"Move presentation.pptx to projects_backup, verify overwrite interactively, maintain attributes, and make a backup.", cp -i -p -b presentation.pptx projects_backup |
|
Organise files according to when they were last modified and provide file sizes in a legible manner.,ls -ltSh |
|
Print the file's inode numbers.,ls -i |
|
"Create directories presentations, images, images and parent directories if they do not exist with verbose output",mkdir -p -v presentations && mkdir -p -v images && mkdir -p -v images |
|
"Recursive copying is used to move archives to music_library, maintaining attributes, and making a backup.", cp -r -p -b archives music_library |
|
Look for figurative connections., find . -type l |
|
Show script.py with line breaks included, cat -E script.py |
|
Check contents of document.docx.zip, unzip -l document.docx.zip |
|
Extract database.sql.zip with no password to directory projects_backup,unzip -d projects_backup database.sql.zip |
|
Zip contract.pdf without any folder organization, zip -j script.py.zip contract.pdf |
|
"Before replacing current files, copy report.pdf to music_library and be sure to ask.",cp -i report.pdf music_library |
|
"Zip files spreadsheet.xlsx, document.docx, report.pdf into script.py.zip, using compression level 6, verbose output, including empty directories",zip -6 -v -r0 script.py.zip spreadsheet.xlsx document.docx report.pdf |
|
Transfer documents to projects_backup and backup existing files, cp -b -r documents projects_backup |
|
Display file sizes in comprehensible units for humans.,ls -h |
|
Transfer the files to reports, find . -name proposal.docx -execdir mv {} reports \ |
|
Display files with extended information,ls -l |
|
"For each file name, create a backup, a hard link, and mirror it to the destination directory while preserving its properties.", cp -p -l -b photo.png documents_backup |
|
"Concatenate video.mp4 and presentation.pptx, numbering non-empty output lines",cat -b video.mp4 presentation.pptx |
|
Check configuration.ini.zip for errors, zip -T configuration.ini.zip |
|
Remove spreadsheet.xlsx from database.sql.zip, zip -d database.sql.zip spreadsheet.xlsx |
|
Show photo.png with suppressed buffered output, cat -u photo.png |
|
Show only the names of the directories; show nothing inside.,ls -d |
|
Display hidden files along with normal files,ls -a |
|
Ignore paths when zipping photo.png, zip -j document.docx.zip photo.png |
|
Search for files with name database.sql, find . -name database.sql |
|
"Before forcibly transferring photo.png to images, make a backup of it.",mv -bf photo.png images |
|
Move the files listed in images to videos_backup. maintaining the directory structure,find images -type f -exec mv -t videos_backup -- {} + |
|
Print proposal.docx with tabs represented as ^I, cat -T proposal.docx |
|
List contents of document.docx with buffered output suppression, cat -u document.docx |
|
List directory contents including hidden files,ls -a |
|
Show directories before files.,ls --group-directories-first |
|
Display memo.txt in quiet mode, cat -q memo.txt |
|
"Extend the format of hidden files and folders, then delete the owner data.","ls -al | awk '{$2=$3=$4=""""; print $0}'" |
|
Ask before replacing presentation.pptx in videos and treat destination as a file,mv -Ti presentation.pptx videos |
|
Make executable.exe.zip that includes report.pdf, zip -c executable.exe.zip report.pdf |
|
Test presentation.pptx.zip for errors, unzip -t presentation.pptx.zip |
|
"Ask before replacing report.pdf in backups, treat destination as file, and move only if newer",mv -iTu report.pdf backups |
|
"If executable.exe is more recent, update it in script.py.zip.", zip -f script.py.zip executable.exe |
|
Provide password '*.pdf' to extract configuration.ini.zip, unzip -P *.pdf configuration.ini.zip |
|
List contents of executable.exe with all control characters displayed, cat -A executable.exe |
|
Show buffered output suppressed for report.pdf, cat -u report.pdf |
|
Transfer presentation.pptx to scripts_backup and conduct a force overwrite, cp -f presentation.pptx scripts_backup |
|
Show directories before files.,ls --group-directories-first |
|
Extract files from image.jpg.zip into downloads_archive, unzip -d downloads_archive image.jpg.zip |
|
Search for directories with names starting with 'backup' and not owned by the user 'admin',"find . -type d -name ""backup*"" ! -user admin" |
|
Display files in descending order of size.,ls -S |
|
"Out of report.pdf.zip, remove proposal.docx.", zip -d report.pdf.zip proposal.docx |
|
Display report.pdf with line numbers, cat -n report.pdf |
|
Duplicate document.docx to archive keeping all attributes,cp -a document.docx archive |
|
Extract the files from spreadsheet.xlsx.zip without a directory structure., unzip -j spreadsheet.xlsx.zip |
|
"After placing configuration.ini inside policy.pdf.zip, remove it.", zip -u policy.pdf.zip configuration.ini |
|
Duplicate audio.mp3 to backup with user confirmation for overwrite, cp -i audio.mp3 backup |
|
Display hidden folders and files,ls -a |
|
Show colored output,ls -G |
|
Transfer temp and its contents to logs_archive recursively, cp -r temp logs_archive |
|
"Save a backup of database.sql, do not overwrite, and move only if newer",mv -nbu database.sql archives |
|
Files are shown in order of file size.,ls -S |
|
Print audio.mp3 making visible all control characters., cat -A audio.mp3 |
|
Ignore paths when extracting files from memo.txt.zip, unzip -j memo.txt.zip |
|
Find files modified within the last 7 days, find . -mtime -7 |
|
Replace outdated files from video.mp4.zip with the most recent ones., unzip -U video.mp4.zip |
|
Search for files with names ending in '.jpg' or '.png',"find . -type f \( -name ""*.jpg"" -o -name ""*.png"" \)" |
|
Extract newer files from contract.pdf.zip, unzip -U contract.pdf.zip |
|
Display proposal.docx with non-blank line numbers, cat -b proposal.docx |
|
Put backups and its contents in an archive., zip -r backups backups |
|
Gently unzip the contents of memo.txt.zip., unzip -q memo.txt.zip |
|
Search for files with names containing 'image' and with read permissions for the group,"find . -type f -name ""*image*"" -perm /g=r" |
|
Mirror report.pdf to music_library and interactively prompt before replacing files, cp -i report.pdf music_library |
|
Zip database.sql without directory structure, zip -j audio.mp3.zip database.sql |
|
Show hidden files and directories in a lengthy format with sizes that are readable by humans and full information.,ls -alh |
|
Contents of executable.exe.zip are listed., unzip -l executable.exe.zip |
|
Avoid replacing report.pdf with temp.,mv -n report.pdf temp |
|
Files from spreadsheet.xlsx.zip should be extracted into temp_folder., unzip -d temp_folder spreadsheet.xlsx.zip |
|
"Without asking, move executable.exe firmly to presentations.",mv -f executable.exe presentations |
|
Compile and transfer configuration.ini to configuration.ini.zip., zip -u configuration.ini.zip configuration.ini |
|
"Request permission before changing audio.mp3 to templates, treat the destination as a file, and provide detailed comments.",mv -TiV audio.mp3 templates |
|
File compression with gzip, find . -type f -exec gzip {} \ |
|
"Compress files presentation.pptx, proposal.docx, proposal.docx into document.docx.zip, compressing with best compression, preserving paths",zip -9 -r document.docx.zip presentation.pptx proposal.docx proposal.docx |
|
"Files are sorted by size, file sizes are shown in a format that is understandable by humans, and the final five lines are shown.",ls -lSh | tail -n 5 |
|
Do not replace scripts with image.jpg,mv -n image.jpg scripts |
|
Extract the files from memo.txt.zip by navigating to projects_backup., unzip -C projects_backup memo.txt.zip |
|
Show hidden files and directories,ls -a |
|
Create a backup by recursively copying images to images_backup while preserving its properties., cp -r -p -b images images_backup |
|
Put policy.pdf on silent display., cat -q policy.pdf |
|
Seek out blocking gadgets, find . -type b |
|
Move files with size greater than 1MB from templates to music_library,find templates -type f -size +1M -exec mv {} music_library \; |
|
"Prompt before overwriting database.sql in backups, treat destination as file, and move only if newer",mv -iuT database.sql backups |
|
List the contents of video.mp4 while suppressing buffered output., cat -u video.mp4 |
|
"Create a directory named 'presentations', copy a file named 'audio.mp3' into it, and then create a symbolic link named 'link' to the file.",mkdir /presentations/ | cp /audio.mp3 /presentations/ | ln -s /presentations/ /link/ |
|
List directories before files in the display,ls --group-directories-first |
|
"Make ""photos"" the directory and remove ""ignore2.png"" from it.",mkdir photos && ls | grep -v ignore2.png |
|
silently list the contents of configuration.ini, cat -q configuration.ini |
|
List contents of video.mp4 with line numbers, cat -n video.mp4 |
|
Make backups of the current files and mirror proposal.docx to archive.,cp -b proposal.docx archive |
|
"List each subdirectory in detail recursively, then tally the total number of directories.","ls -Rd | grep ""/$"" | wc -l" |
|
Search for files between 1GB and 2GB in size., find . -size +1G -size -2G |
|
silently list the contents of report.pdf, cat -q report.pdf |
|
Transfer executable.exe to photos_backup and interactively confirm overwrite while preserving attributes, cp -i -p executable.exe photos_backup |
|
Look for figurative connections., find . -type l |
|
"Compress files spreadsheet.xlsx, audio.mp3, script.py into memo.txt.zip, storing file attributes, excluding '*.tmp' files, silently",zip -X -x '*.tmp' -q memo.txt.zip spreadsheet.xlsx audio.mp3 script.py |
|
"Keep a copy of policy.pdf, avoid overwriting, and provide detailed feedback.",mv -nbv policy.pdf logs |
|
Compress projects recursively, zip -r projects projects |
|
Create a new script.py by archiving report.pdf.zip, zip -c script.py.zip report.pdf |
|
Move script.py to documents and replace existing files,mv -f script.py documents |
|
Show configuration.ini with error messages suppressed, cat -q configuration.ini |
|
Look for gaming devices., find . -type c |
|
"Disentangle policy.pdf.zip, excluding exclude.mp4, to directory images_backup",unzip -x exclude.mp4 -d images_backup policy.pdf.zip |
|
Compress projects recursively, zip -r projects projects |
|
Zip memo.txt without directory structure, zip -j audio.mp3.zip memo.txt |
|
Display characters for executable.exe that aren't printed, cat -v executable.exe |
|
Print the contents of database.sql with line ends., cat -E database.sql |
|
Extract database.sql.zip with no password to directory projects_backup,unzip -d projects_backup database.sql.zip |
|
Put policy.pdf on silent display., cat -q policy.pdf |
|
Display directory structure recursively,ls -R |
|
"Move presentation.pptx to scripts, preserving existing files",mv -n presentation.pptx scripts |
|
"Without asking, move executable.exe firmly to presentations.",mv -f executable.exe presentations |
|
"If downloads is outdated or nonexistent, substitute spreadsheet.xlsx for it.",mv -u spreadsheet.xlsx downloads |
|
Transfer image.jpg to backup with attribute preservation, cp -p image.jpg backup |
|
"If spreadsheet.xlsx is more recent or does not already exist in documents, move it there.",mv -u spreadsheet.xlsx documents |
|
"Without asking, make a backup, and force copy report.pdf to logs_archive while maintaining attributes", cp -f -p -b report.pdf logs_archive |
|
"Make a backup copy of presentation.pptx and duplicate it to output with user approval to overwrite, preserve attributes, and overwrite", cp -i -p -b presentation.pptx output |
|
Examine audio.mp3.zip for mistakes., unzip -t audio.mp3.zip |
|
List contents of executable.exe with all control characters displayed, cat -A executable.exe |
|
Mirror photos_backup to scripts recursively, cp -r scripts photos_backup |
|
Enumerate folders empty of contents.,ls -d |
|
Print memo.txt contents with non-blank line numbering, cat -b memo.txt |
|
Print the contents of policy.pdf with line ends., cat -E policy.pdf |
|
"Display policy.pdf, showing line numbers, non-printing characters, and tabs as spaces, with a '$' at the end of each line",cat -n -vT -e policy.pdf |
|
Sort the files according to their sizes.,ls -S |
|
List files inside presentation.pptx.zip, unzip -l presentation.pptx.zip |
|
"Display files individually, one per line",ls -1 |
|
Make a directory called scripts and output verbosely,mkdir -v scripts |
|
"Using coloured output, comprehensive information, and human-readable sizes, sort files by size and modification time in reverse order.",ls -SltrhG |
|
Extract files from document.docx.zip and overwrite existing files, unzip -o document.docx.zip |
|
List files sorted by their sizes,ls -S |
|
"Zip files document.docx, presentation.pptx, executable.exe into executable.exe.zip, including empty directories",zip -r0 executable.exe.zip document.docx presentation.pptx executable.exe |
|
Transfer photo.png to reports solely in cases where it is not in use or is more recent.,mv -u photo.png reports |
|
Pack document.docx without any archive paths, zip -j contract.pdf.zip document.docx |
|
Output the first 15 lines of report.pdf,cat report.pdf | head -n 15 |
|
Update contract.pdf if newer in document.docx.zip, zip -u document.docx.zip contract.pdf |
|
List contents of memo.txt with all control characters displayed, cat -A memo.txt |
|
Find directories with names starting with 'dir',"find . -type d -name ""dir*""" |
|
List the files in order of modification date.,ls -t |
|
Provide a complete informational list of every file in the current directory.,ls -al |
|
Freshen configuration.ini in document.docx.zip, zip -f document.docx.zip configuration.ini |
|
See what's in image.jpg.zip, unzip -l image.jpg.zip |
|
Overwrite databases with document.docx without prompting,mv -f document.docx databases |
|
"Move document.docx to videos_backup, and if the files are already there, create a backup.", cp -b -i document.docx videos_backup |
|
List video.mp4 contents with suppression of repeated empty lines, cat -s video.mp4 |
|
Find files owned by the user and group *.py,find . -type f -user *.py -group *.py |
|
Test video.mp4.zip for errors, zip -T video.mp4.zip |
|
Show executable.exe with line numbers that aren't blank., cat -b executable.exe |
|
Duplicate audio.mp3 to logs_archive and back up existing files,cp -b audio.mp3 logs_archive |
|
Shift video.mp4 to videos treating it like a normal file,mv -T video.mp4 videos |
|
Create directory images with verbose output,mkdir -v images |
|
"Make a copy of executable.exe, don't replace it, and output verbosely |
|
"Sort all files that start with ""data"" backwards.",ls -r data* |
|
List files in reverse order of their names,ls -r |
|
"List all files, including hidden files",ls -a |
|
"Create a ""templates"" directory and list the files within it.",mkdir templates && cp templates/* output |
|
"Package files video.mp4, report.pdf, database.sql into image.jpg.zip, excluding '*.tmp' files",zip -x '*.tmp' -r image.jpg.zip video.mp4 report.pdf database.sql |
|
Print script.py while preventing the display of several blank lines., cat -s script.py |
|
Search for standard files., find . -type f |
|
Create backups of the current files and clone photo.png to temp_folder.,cp -b photo.png temp_folder |
|
Move image.jpg to temp treating it as a normal file,mv -T image.jpg temp |
|
Add and move executable.exe to report.pdf.zip, zip -m report.pdf.zip executable.exe |
|
Move the files in archives to downloads_archive after filtering them using *.pdf.,"grep ""*.pdf"" archives/* | xargs -I {} mv {} downloads_archive" |
|
Zip reports and subdirectories, zip -r reports reports |
|
Move image.jpg to temp treating it as a normal file,mv -T image.jpg temp |
|
Display hidden files and directories with extensive information in a lengthy manner.,ls -al |
|
Ignore directory structure when zipping configuration.ini, zip -j photo.png.zip configuration.ini |
|
List contents of memo.txt with all control characters displayed, cat -A memo.txt |
|
"In music, prompt before overwriting proposal.docx, regard the destination as a file, and only move if it's more recent.",mv -iuT proposal.docx music |
|
"Display the contents of video.mp4, showing non-printing characters and tabs as '^I'",cat -vT video.mp4 |
|
List each file on a single line.,ls -1 |
|
"Create a new directory called ""backups"" and create symbolic link named ""pointer"" pointing to ""backup"".",mkdir backups && ln -s backup pointer |
|
Show image.jpg with suppressed buffered output, cat -u image.jpg |
|
Overwrite existing files without prompting when extracting photo.png.zip, unzip -o photo.png.zip |
|
"Make a hard link, backup, and copy spreadsheet.xlsx to photos_backup while maintaining its properties.", cp -p -l -b spreadsheet.xlsx photos_backup |
|
Replicate document.docx to logs_archive and create backups if files exist,cp -b document.docx logs_archive |
|
Refresh memo.txt in the zip file script.py., zip -f script.py.zip memo.txt |
|
Duplicate document.docx to archive keeping all attributes,cp -a document.docx archive |
|
compel Make a backup of the current files and copy document.docx to temp_folder., cp -b -f document.docx temp_folder |
|
|