[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-686589-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-686589-en":130,"doc-similar-686589":154},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","useful-commands-for-linux-yocto-git-shortcuts-and-tricks","Useful Commands for Linux, Yocto & Git - Shortcuts and tricks","","Quick-reference guide compiling practical Linux command line shortcuts and workflows for everyday administration and development. Covers common file and directory operations, redirection and viewing/searching text, permission management with chmod both symbolic and numeric, and essential utilities like diff, ps/kill, tar archives, wc/df/du, and shell navigation/history. Expands into Yocto build basics, including setting up a Poky workspace, cloning releases, configuring local build variables, running bitbake recipes/images, listing tasks and environments, and managing build caches.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/useful-commands-for-linux-yocto-git-shortcuts-and-tricks/686589/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/useful-commands-for-linux-yocto-git-shortcuts-and-tricks/686589.png","ImageObject",300,407,{"name":42,"@type":43},"vwvw","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-29","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What basic commands are provided for file and directory management in Linux?","Question",{"text":63,"@type":64},"The guide lists commands for listing files (ls, ls -l, ls -a), creating directories (mkdir), navigating (cd, cd .., cd -), showing the current directory (pwd), and copying/moving files (cp, cp -r, mv). It also includes removing files/directories with rm and rm -rf.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does the document explain output redirection and pipelines in the Linux command line?",{"text":68,"@type":64},"It shows redirecting command output to a file using > and appending using >>, and combining commands with a pipe using command1 | command2. It also includes tools for viewing files such as cat, less, head, tail, and tail -f.",{"name":70,"@type":61,"acceptedAnswer":71},"Which Yocto and Bitbake commands are used to build images and manage tasks?",{"text":72,"@type":64},"It covers running builds with bitbake \u003Crecipe>, bitbake \u003Cimage_recipe>, and building SDKs via bitbake -c populate_sdk. For control and inspection, it includes bitbake -f, bitbake -k, bitbake -c listtasks, bitbake -e, and cleaning steps like bitbake -c clean/cleansstate/cleanall.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},686589,1794057231,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":55,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":26,"preview_urls":145},3985747874149,"https://ap-avatar.wpscdn.com/avatar/3a001161165b4dc3d9e?x-image-process=image/resize,m_fixed,w_180,h_180&k=1790129441039064114","Useful Commands for  \nLinux, Yocto & Git  \nUseful Commands for  \nLinux, Yocto & Git  \nShortcuts and tricks to help with working on the Linux command line, the Yocto build system and Git.  \nCopyright © 2022 by Doulos Ltd. All rights reserved.  \nThe information contained herein is the property of Doulos Ltd and is supplied without liability for errors oromissions. No part may be used, stored, transmitted or reproduced in any form or medium without the written permission of Doulos Ltd.  \nLinux Commands  \nFiles & Directories  \nlist all regular files in directory: ls  \nlist with more information: ls -l list all files (including . * files): ls -a  \ncreate a directory: mkdir dir  \nchange to directory dir: cd dir  \nparent directory: cd ..  \nprevious directory: cd   \nhome directory: cd  \nshow current directory: pwd  \ndir relative to current dir: ./dir  \ncopy file from A to B: cp A/file B/  \ncopy file to home dir: cp file ~/  \ncopy file in dir to current dir: cp dir/file . copy dir recursively: cp -r dir newdir move file from A to B: mv A/file B/file  \nrename a file: mv oldname newname  \ncreate symbolic link to file or dir:  \nln -s original linked  \nremove file (no undo!): rm file remove dir and contents (no undo!):  \nrm -rf dir  \nall regular files: *  \nall hidden files & directories: .* all files with extension ext: * .ext  \ns  \nd  \nn a  \nm m  \no C  \no  \nt  \nc  \nYo  \ns  \nd  \nn a  \nm m  \no C  \nt  \ni  \nG  \nLinux Commands  \nRedirection, Displaying Files & Searching  \nRedirecting Commands:  \nredirect command output to file: command > file append command output to file: command >> file redirect command1 output to command2:  \ncommand1 | command2  \nDisplaying Files:  \ndisplay file: cat file  \ndisplay file by pages: less file  \ndisplay first 10 lines of file: head file  \ndisplay last 10 lines of file: tail file  \ndisplay last 10 lines of file with continuous updates:  \ntail -f file  \nSearching:  \nsearch for string within file: grep string file search for string in files in dir: grep -r string dir find file recursively from current dir:  \nfind . -name “file”  \nquick search using index for file: locate file  \nChanging File Permissions  \nfile/dir permissions defined as: user|group|other = rwx|rwx|rwx where:  \n\n| r- - | read | 100 | 4 |\n| --- | --- | --- | --- |\n| -w- | write | 010 | 2 |\n| - -x | execute | 001 | 1 |\n\nchange file/dir permissions by category (user, group, other or all(=ugo)), e.g.:  \nchmod u+rw file  \n(add read & write permissions to user)  \nchmod a-x file  \n(remove execute permissions from all users)  \nchange file/dir permissions numerically, e.g.:  \nchmod 644 file (set file as readable by all, writable by owner)  \nchmod 755 file (set file as readable/executable by all, writable by owner)  \nset permissions of dir & contents recursively to XYZ: chmod -R XYZ dir/  \nOther Useful Commands  \nComparing Files & Directories:  \ncompare files: diff A B  \ncompare dirs: diff -r A/ B/  \nManaging Processes:  \nshow running processes: ps -ef  \nkill a process with PID: kill-9 PID  \nManaging Archives:  \ncreate archive from dir: tar czf archive dir  \nextract archive: tar xvf archive  \nFile Sizes & Space:  \nsize of file in lines/words/bytes: wc file  \nshow size, filesystem & usage data for all partitions:  \ndf -Th  \nshow size of dir: du -sh dir  \nOther Commands:  \nautocomplete: TAB  \nshow command history: history  \nexecute command N from history: !N  \nreverse search cmd history: CTRL-r  \nswitch to user: su - user  \nswitch to root: su   \nexecute command as root: sudo command (configure via /etc/sudoers)  \ndisplay all network interfaces: ifconfig -a  \ntest network with another machine: ping ip .ip .ip .ip  \ncheck kernel version: uname -r  \nshow kernel logs: dmesg  \nrun program from local dir (not on PATH):./program  \nrun program in background (release shell):  \nprogram &  \ncan select text with mouse  \ncopy selected text to buffer: CTRL-SHIFT-c paste buffer after cursor: CTRL-SHIFT-v insert selected text at new location with mouse:  \nclick middle mouse b","cbCailNfmEZhF3rW","https://ap.wps.com/l/cbCailNfmEZhF3rW","pdf",793624,11,"English","# Linux Commands\n## Files & Directories\n## Redirection, Displaying Files & Searching\n## Changing File Permissions\n## Comparing Files & Directories\n## Managing Processes\n## Managing Archives\n## File Sizes & Space\n## Other Commands\n# Yocto Commands\n## Getting Started\n## Building Recipes & Bitbake\n## Creating Layers & Recipes","[{\"question\":\"What basic commands are provided for file and directory management in Linux?\",\"answer\":\"The guide lists commands for listing files (ls, ls -l, ls -a), creating directories (mkdir), navigating (cd, cd .., cd -), showing the current directory (pwd), and copying/moving files (cp, cp -r, mv). It also includes removing files/directories with rm and rm -rf.\"},{\"question\":\"How does the document explain output redirection and pipelines in the Linux command line?\",\"answer\":\"It shows redirecting command output to a file using \\u003e and appending using \\u003e\\u003e, and combining commands with a pipe using command1 | command2. It also includes tools for viewing files such as cat, less, head, tail, and tail -f.\"},{\"question\":\"Which Yocto and Bitbake commands are used to build images and manage tasks?\",\"answer\":\"It covers running builds with bitbake \\u003crecipe\\u003e, bitbake \\u003cimage_recipe\\u003e, and building SDKs via bitbake -c populate_sdk. For control and inspection, it includes bitbake -f, bitbake -k, bitbake -c listtasks, bitbake -e, and cleaning steps like bitbake -c clean/cleansstate/cleanall.\"}]","Useful Commands for Linux, Yocto & Git - Shortcuts and tricks | PDF",28,[146,150],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/85453b7138fa6045fd63f49297fff933.webp",983,1385,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/75c69f6413d98eca88ac4f23a83d923f.webp",982,692,{"list":155,"token":11},[156,162,168,174,180,186,193,200,207,214],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":105,"category_name":29,"create_tm":161},646204,"Unix/Linux Command Reference - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971484885/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=GKD9D6V2ddbQt9TQnpLJjq%2FjrM4%3D","unixlinux-command-reference-read-online-free",1792753398,{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":110,"category_name":29,"create_tm":167},691901,"Tinker-System-3N - Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002887119/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=FOvsnyVDoxURFF2Mg5aZV6Z5XoI%3D","tinker-system-3n-datasheet",1794176788,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":22,"category_name":29,"create_tm":173},760087,"GitFourchette - User's Guide - July 2 2026 version 1.9","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495428/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=Wn88PC%2FHJNXB%2BPw5lOVnADNE3qM%3D","gitfourchette-users-guide-july-2-2026-version-19",1795898466,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":123,"category_name":29,"create_tm":179},693047,"Beginner’s Guide to using Git","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=yxMK9nBSU6KAWF3XSeHKvnaC1Qw%3D","beginners-guide-to-using-git",1794246579,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":33,"category_name":29,"create_tm":185},687586,"Quick Vim Reference - Foreword and Table of Contents - Quick Survey of Vim Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262644/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=PgMpR6%2FV%2FKm3DHNgW4vm%2FnSrdl8%3D","quick-vim-reference-foreword-and-table-of-contents-quick-survey-of-vim-features",1794084211,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":29,"create_tm":192},517698,"Kill Team Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229937649605/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=HOUgVxzUqMQ5bb22wMfqQ%2B4vm1M%3D","kill-team-manual",23,1791343835,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":29,"create_tm":199},43105,"Linux Bible Tenth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229796066014/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=RfitXiIpKAVDnc7bs0Vr0wY86Og%3D","linux-bible-tenth-edition",65,1783377615,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":29,"create_tm":206},179256,"Linux Basics For Hackers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876990216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=rKD8Jp6jz2DYwPagCt%2B3bOZZjJY%3D","linux-basics-for-hackers-179256",21,1788336107,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":29,"create_tm":213},43250,"Practical Binary Analysis: Build Your Own Linux Tools for Binary Instrumentation, Analysis, and Disassembly","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229796070282/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=q7oQhYHqsb34nmYft8d2Wata%2Fhg%3D","practical-binary-analysis-build-your-own-linux-tools-for-binary-instrumentation-analysis-and-disassembly",46,1783379127,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":30,"category_name":29,"create_tm":219},734084,"Country Code Configuration for Embedded Wireless Modules - Silex Radio Modules on Linux Platforms - Linux/Android Driver","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031819010/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=ADK8kD%2BEeMrz7bXKTjBvJ0q9CD0%3D","country-code-configuration-for-embedded-wireless-modules-silex-radio-modules-on-linux-platforms-linuxandroid-driver",1795389801]