Rtyuiop

Download as pdf
Download as pdf
You are on page 1of 15
6129122, 12:08 PM Using Wildcard In Linux -Globbing In Linux (Module 4.0) TEKNEED BASIC LINUX TUTORIAL POINT WITH EXAMPLES HOME ABOUT LINUX ——_LEARNLINUXFROMSCRATCH —RHCSA,8.——RHCE LINUXONAZURE —LINUXSNIPPETY —LFCSA_—=TECHNOLOGYTODAY —‘JOINTEKNEED. LFCSA EXAM PRACTICE QUESTIONS RCSA 8 DUMPS/EXAM PRACTICE QUESTIONS ~ RHCE 8 EXAM PRACTICE QUESTIONS AUTOMATION SERVICES E-BOOKS v Module 4.0 - Using Wildcard In soncn Linux - (Globbing) Vietor on RHCSA 8 Exam Practice Question 4 (Installing FTP Server In Linux) Emmanuel on RHCSA 8 Exam Practice Question 4 (Installing FTP Server In Linux) Wildcard David on RHCSA 8 EX200 Exam Practice Question & Answer Collections David on RHCE 8 EX294 Exam Practice Question & Answer Collections Peter on RHCE 8 EX294 Exam Practice Contents Question & Answer Collections UNDERSTANDING THE SUBJECT MATTER What Is Globbing In Linux. What Is Wildcard In Linux ARCHIVES ACTION TIME / How To Use Wildcard in Linux With Examples April 2022 TUTORIAL VIDEO March 2022 February 2022 January 2022 December 2021 htps:eknaed comlusingwildcaré-insinux lobbing module-4-0) ans. 729722, 12:08 PM UNDERSTANDING THE SUBJECT MATTER From the previous lessons, you have learnt how to copy move, paste, ist, delete files and directories. However, what you have not learnt is how to do all ofthese activities in a faster, easier, smarter and convenient way. Have you thought about deleting, copying or listing a group of fils and directories withthe same pattern? that's basicaly filtering. Well, with globbing filtering of files is possible which is what we are going to look at n this lesson What Is Globbing In Linux Globing isa technique a Linux shell use to match a search pattern by using special characters called wildcards. What Is Wildcard In Linux Wildcards are used to match a search pattern. The commonly used wildcards lobbing uses are *,?, and [] ‘The use of wildcards In Linux, not even only in Linux cannot be overemphasized. Wildcards can be combined together to make a great search pattern. Some of the wildcards that can be used in Linux are * (Asterisk) 2 (question mark) [square bracket) ! (exclamation) O (curly bracket) htps:tekneed comlusingwildcaré-insinux-lobbing-module-4-0/ Using Wildcard In Linux -Globbing In Linux (Module 4.0) November 2021 October 2021 August 2021 July 2021 June 2021 May 2021 April 2021 March 2021 February 2021 January 2021 December 2020 November 2020 October 2020 September 2020 ‘August 2020 July 2020 June 2020 May 2020 April 2020 March 2020 February 2020 January 2020 December 2019 ‘Ask Your Questions (RHCSA) ‘Automation Errors & Solutions Learn Linux from scratch Linux Linux On Azure 2n6 9129722, 12:08 PM [oF eo} Hawpreuse Wildcard}in}Linux: What Is * Wildcard Used For? The * is used to match all character. What Is ? Wildcard Used For? ‘The *2" is used to match a single/one character and the character can be anything, What Is [] Wildcard Used For? The [is used to match a range of character, including numbers. The range of character includes [abede] or [a-e] [ABCDE] or [A-E] [5678] or [5-8] # [aczAeZ] [a-2A-20-9] What is ! Wildcard Used For? The !is used to exempt a matchifiter in What Is {} Wildcard Used For? ‘The *Q” is used to combine more than one globbing pattern in a filter/search with a comma How Does Wildcard Work? htps:eknaed comlusingwildcaré-insinux lobbing module-4-0) Using Wildcard In Linux -Globbing In Linux (Module 4.0) Linux Snippet Red Hat Ansible RHCE RHCE 8 Exam Practice Questions RHCSA 8 DUMPS/Exam Practice Questions RHCSA, 8 Students Workstation Technology Today Uncategorized © 2020 TekNeed. All Rights Reserved First name or full name Email (C By continuing, you accept the privacy policy SUBSCRIBE & BE UPDATED (© 2020 TekNeed. All Rights Reserved ans 729722, 12:08 PM Using Wildcard In Linux -Globbing In Linux (Module 4.0) These wildcards can be manipulated in different ways. It can be used once, more than once, or can even be combined together in a search/match pattern, Let's see the different ways wildcards can be used with examples in the “ACTION TIME" section. You May Like: Linux ACTION TIME ow To Mount A NTFS Partitioned Drive In How To Use Wildcard In Linux With Examples How To Use The * Wildcard In Linux With Examples In the “UNDERSTANDING THE SUBJECT MATTER” section, it was mentioned that ‘is used to match all character. So let's do some examples with * [root@HgesPRD ~]# cd /sys/nodule/ [root@HQesPRD module]# 1s 8250 kedboc ac97_bus kedbts acpi Libahed, scsi_transport_spi acpiphp libata ani Libere32 ata_generic le ata_piix me_mod battery nodule bik_cgroup mousecev block mptbase htps:tekneed comlusingwildcaré-insinux lobbing odule-4-0) sesi_dh_rdac sd_mod se shpchp slab_common snd snd_ac97_codec ans 729722, 1208 PM bridge button cdrom configés coufreg cpuidle snd_seq_midi_event cre32c_intel erc32_pelmul cretiedif_pelmul cryptongr debug_core dn_log dn_mirror n_nod dn_region_hash arm drn_kms_helper dynamic_debug Using Wildcard In Linux -Globbing In Linux (Module 4.0) mptsesih mptspi netpoll nf_conntrack nf_conntrack_ipva nf_conntrack_ipv6 nf_conntrack tftp nf_defrag_ipva nf_defrag_ipve nf_nat nf_nat_ipva nf_nat_ipve nf_nat_tftp nfnet Link nf_reject_ipva nf_reject_ipvé nf_tables nf_tables_set nft_chain_nat_ipva 1008 nft_chain_nat_ipve edac_core nft_chain_route_ipva efi_pstore nft_chain_route_ipvé efivars nft_compat. enci_hed nft_counter fo nft_et fo_sys_fops nft_fib firnuare_class nft_fib_inet fuse nft_fib_ipva ghash_clnulni_intel nft_fib_ipv6 hid nft_objref hid_magicrouse nft_reject hid_ntrig nft_reject_inet i2c_piixa nls_ut ts igoa2 peie_aspm ima pciehp intel_idle pci_hotplug intel_raplperf pemcia_core ips_tables pespkr vn_vsock_vmei_transport ip_set printk ip_tables processor pt_NASQUERADE psmouse ipt_REJECT pstore ipvs randon isofs rcupdate Joydev reutree kab rng_core htps:tekneed comlusingwildcaré-insinux lobbing odule-4-0) snd_ens1371 snd_pem snd_rawnidi snd_seq snd_seq_device snd_seq_midi snd_tiner soundcore spurious sreutree sr_mod stp sunrpe suspend syscopyerea sysfillrect sysimgblt sysrq tep_cubic thermal tpn tpn_erb tpn_tis tpn_tis_core ttm tun uuhei_hee input usbcore usbhid virtio_pei vind vnw_balloon vnwgx vt watchdog workqueue xfs xhei_hee xt_CHECKSUM xt_conntrack ens 729722, 1208 PM Using Wildcard In Linux -Globbing In Linux (Module 4.0) kernel rte_enos. xz_6ec keyboard sesi_ch_alua zswap In the /sys/module directory above, = Tollist/filter all the directories that start with intel, use the command, [root@HQeaPRD nodule]# 1s -1d intel* druxr-xr-x. 3 root root @ Apr 14 22:31 intel_icle druxr-xr-x. 5 root root @ Apr 14 22:31 intel_rapl_perf 1 To list/filter all the files and directories that start with intel, use the command, [root@HQESPRD module]# 1s -1 intel* = Tolist/filter all the directories that end with i tel, use the command, [root@igeaPRD module] 1s -1d *intel druxr-xr-x. 5 root root @ Apr 14 22:31 cre32c_intel druxr-xr-x. 5 root root @ Apr 14 22:31 ghash_clmulni_intel [root@HgesPRD module]# = Tollist/filter all the directories that contai tel, use the command, [root@HQeSPRD module] 1s -1d *intel* druxr-xr-x. 5 root root @ Apr 14 22:31 cre32c_intel root root @ Apr 14 22:31 ghash_clmulni_intel 5 druxr-xr-x. 5 Grwxr-xr-x. 3 root root @ Apr 14 22:31 intel_icle 5 0 druxr-xr-x. 5 root root @ Apr 14 22:31 intel_rapl_perf [root@HQeaPRD module ]# htps:eknaed comlusingwildcaré-insinux lobbing module-4-0) ens 729722, 12:08 PM Using Wildcard In Linux -Globbing In Linux (Module 4.0) For the purpose of this exercise, create temporary files in /media by using the command, [root@hQesPRD ~]# touch /edia/tekneed1 /nedia/tekneed2 {nedia/tekneed3 /media/tekneed4 /nedia/tekneed4 Imedia/tekneed5 /media/needitek /nedia/need2tek Inedia/need3tek /media/needatek /nedia/needStek = To copy all the files that start with tek to the /tmp directory, use the command, [root@hQesPRD ~}# cp /nedia/tek* /tmp [root@HgeapRo 18 List the files that start with tek in /tmp to verify. [root@rgeapRo 1 1 cpWepeepens 1 1 1 [root@ygespro To delete all the files that end with tek in /media command, a] 1s -1 /tmp/tex* ol root @ Apr root @ Apr root ® Apr root @ Apr root ® Apr 14 23:04 /tmp/tekneedt 14 23:04 /tmp/tekneed2 14 23:04 /tmp/tekneed3 14 23:04 /tmp/tekneecs 14 23:04 /tmp/tekneeds rectory, use the [root@HQeapRD ~]# rm -rf /media/*tek verify, [root@HQesPRD ~]# 1s -1 /media htps:tekneed comlusingwildcaré-insinux lobbing odule-4-0) 716 729722, 1208 PM Using Wildcard In Linux -Globbing In Linux (Module 4.0) total @ sPwer--r-=. 1 root root @ Apr 14 23:02 tekneed1 htps:eknaed comlusingwildcaré-insinux lobbing module-4-0) vans 729722, 12:08 PM Using Wildcard In Linux -Globbing In Linux (Module 4.0) How To Set Up Log Module 41 ~ Basic File Rotation & Manage Log ‘Management Tools In Files Using logrotate In Linux Linux Leave a Reply Your email address will not be published Comment, Name* Email * Website (Save my name, email, and website in this browser for the next time comment. “anaging Boot and scheduling Processes Using April, 2022 March 32022 Managing Software & Subscription Using Ansibl March 30,2022 htps:eknaed comlusingwildcaré-insinux lobbing module-4-0) 1516

You might also like