Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Totally Noob but...
New Posts  All Forums:Forum Nav:

Totally Noob but...

post #1 of 15
Thread Starter 
Why didn't anyone tell me about *name/part of name of*.file or directory? I felt so noob when I realized all of the time wasted spent typing in the exact name of what/where I wanted something.

I was installing LibreOffice today and they used that as a way to simplify finding a specific rpm and then it hit me; I could do that for getting around in terminal with things. Holy crap it's so nice not to have to type out full names like "xX_en-US_1.3.3.7-u".

On a side note: I probably haven't been exposed to many tarballs before but the README for Libre was the easiest and most comprehensible I've seen yet. If everyone made installs this easy I don't think I'd have to freak out when dealing with a tar.bz2/tar.gz anymore.

PS: Has anyone thought of putting together a "short but important commands to know in terminal" list? I know there's books and all but I just thought it would be neat if we made one with the most common/important ones for everyday usage.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #2 of 15
Quote:
Originally Posted by Rookie1337 View Post
Why didn't anyone tell me about *name/part of name of*.file or directory? I felt so noob when I realized all of the time wasted spent typing in the exact name of what/where I wanted something.

I was installing LibreOffice today and they used that as a way to simplify finding a specific rpm and then it hit me; I could do that for getting around in terminal with things. Holy crap it's so nice not to have to type out full names like "xX_en-US_1.3.3.7-u".

On a side note: I probably haven't been exposed to many tarballs before but the README for Libre was the easiest and most comprehensible I've seen yet. If everyone made installs this easy I don't think I'd have to freak out when dealing with a tar.bz2/tar.gz anymore.

PS: Has anyone thought of putting together a "short but important commands to know in terminal" list? I know there's books and all but I just thought it would be neat if we made one with the most common/important ones for everyday usage.
there have been several attempts to do such one, but it never get stickied and always gets lost in the clutter of "which linux for noob" threads...

you can also type in a partial name and hit tab, and it will auto complete

but wildcard searching isn't really all that new....been around for ages something that should be obvious hehe (j/k)
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
post #3 of 15
So are you saying you didn't know about the wildcard character '*'?

When typing things in the command line you can press tab and it will auto-complete for you in most situations. If the file you are typing has the same beginning as another, but a different end, it will auto complete the parts that are the same, then just hit the next character of the file name and tab again to fill out the rest.

The wildcard character can be used for a lot more than filling out file name. Basically the * character is a substitution for all combinations of charecters of any length, and can be really useful for doing operations on multiple files. Just as an example say you wanted to copy all files that are of type avi in a particular directory, you could use:
cp *.avi /newdir

Thats pretty basic but are many great uses for wildcard characters.
Scream Machine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-4770K Gigabyte Z87X-UD3H EVGA GTX 780 16GB DDR3 
Hard DriveCoolingOSMonitor
256GB Samsung 840 Pro Kraken X60 Windows 7 Shimian 2560x1440 
Case
Phantom 630 
  hide details  
Reply
Scream Machine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-4770K Gigabyte Z87X-UD3H EVGA GTX 780 16GB DDR3 
Hard DriveCoolingOSMonitor
256GB Samsung 840 Pro Kraken X60 Windows 7 Shimian 2560x1440 
Case
Phantom 630 
  hide details  
Reply
post #4 of 15
my favorite use lately for wildcards is

ls /etc/rc?.d

and it will kick you back each of your run level directories so you can compare them side by side nice and easy lol

? for single character

* for any amount of charactesr

you can do a range with brackets like

[0-6]

or you can do a list with brackets like

[aeiou]

so you can search for somethin like b[uei]t for but bet and bit

lol there is a bunch of other stuff when it comes to regular expressions as well <3 regular expressions, they make life easy
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
post #5 of 15
Yea I didn't even know about ? and [] until I had to use flex for a class.
Scream Machine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-4770K Gigabyte Z87X-UD3H EVGA GTX 780 16GB DDR3 
Hard DriveCoolingOSMonitor
256GB Samsung 840 Pro Kraken X60 Windows 7 Shimian 2560x1440 
Case
Phantom 630 
  hide details  
Reply
Scream Machine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-4770K Gigabyte Z87X-UD3H EVGA GTX 780 16GB DDR3 
Hard DriveCoolingOSMonitor
256GB Samsung 840 Pro Kraken X60 Windows 7 Shimian 2560x1440 
Case
Phantom 630 
  hide details  
Reply
post #6 of 15
one i recently learned was using {}

the example i found it in was in the archwiki talking about creating several directories as once, like this:

mkdir /etc/{rc{0..6},init}.d

the {0..6} will expand the command into /etc/rc0.d /etc/rc1.d /etc/rc2.d ... /etc/init.d

it also works for partial strings

{te,t}mp

- tasker.
royce
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 1090T Black ASUS M4N98TD EVO 2x MSI N460GTX 1GB 2x4G G.Skill Ripjaw 1600 (8 8 8 24) 
Hard DriveOptical DriveOSMonitor
128G Crucial SSD, 3x1.5TB WD AV-GP (SW Raid 5) Blu-ray Combo Drive Arch_64 (2.6.37.4-zen_stable) 27" HP2711x 
KeyboardPowerCaseMouse
Luxeed U5 ABS Dark Beret 1KW Antec Lanboy Air (YLW) Logitech PS/2 Optical 
  hide details  
Reply
royce
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 1090T Black ASUS M4N98TD EVO 2x MSI N460GTX 1GB 2x4G G.Skill Ripjaw 1600 (8 8 8 24) 
Hard DriveOptical DriveOSMonitor
128G Crucial SSD, 3x1.5TB WD AV-GP (SW Raid 5) Blu-ray Combo Drive Arch_64 (2.6.37.4-zen_stable) 27" HP2711x 
KeyboardPowerCaseMouse
Luxeed U5 ABS Dark Beret 1KW Antec Lanboy Air (YLW) Logitech PS/2 Optical 
  hide details  
Reply
post #7 of 15
Quote:
Originally Posted by Rookie1337 View Post
Why didn't anyone tell me about *name/part of name of*.file or directory? I felt so noob when I realized all of the time wasted spent typing in the exact name of what/where I wanted something.

I was installing LibreOffice today and they used that as a way to simplify finding a specific rpm and then it hit me; I could do that for getting around in terminal with things. Holy crap it's so nice not to have to type out full names like "xX_en-US_1.3.3.7-u".

On a side note: I probably haven't been exposed to many tarballs before but the README for Libre was the easiest and most comprehensible I've seen yet. If everyone made installs this easy I don't think I'd have to freak out when dealing with a tar.bz2/tar.gz anymore.

Edit: no I will not post them on the forum. I dont want anyone crying about it, nor are they fun for pulling pranks on your friends.

PS: Has anyone thought of putting together a "short but important commands to know in terminal" list? I know there's books and all but I just thought it would be neat if we made one with the most common/important ones for everyday usage.
As I mentioned on the thread for 'useful commands'. There is no point in just pasting commands that you have no idea what they do. You need to learn the OS before just blindly running ****. I could paste some commands here and claim they are legit but will totally crash your linux desktop. Learn the OS then you wont need to rely on running commands you have no clue what they will do.
Desktop
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q9550 EVGA 780SLi EVGA GTX285SSC 4GB OCZ Reaper HPC Edition 
Hard DriveOptical DriveOSPower
150GB Velociraptor x2 - RAID0 2 - Samsung Write Master's Window 7 64-bit 750 Watt OCZ 60 AMPs on +12v 
CaseMouse
LIAN LI PC-V2110B Black Logitech G3 
  hide details  
Reply
Desktop
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q9550 EVGA 780SLi EVGA GTX285SSC 4GB OCZ Reaper HPC Edition 
Hard DriveOptical DriveOSPower
150GB Velociraptor x2 - RAID0 2 - Samsung Write Master's Window 7 64-bit 750 Watt OCZ 60 AMPs on +12v 
CaseMouse
LIAN LI PC-V2110B Black Logitech G3 
  hide details  
Reply
post #8 of 15
Quote:
Originally Posted by transhour View Post
there have been several attempts to do such one, but it never get stickied and always gets lost in the clutter of "which linux for noob" threads...

you can also type in a partial name and hit tab, and it will auto complete

but wildcard searching isn't really all that new....been around for ages something that should be obvious hehe (j/k)
tab is your friend. Imagine how many keystrokes you've wasted! J/k.

I really only use wildcards when I'm searching for something in repos, which can be helpful if you don't know what the whole name is, or the specific architecture.
Deimos
(13 items)
 
Pluto
(18 items)
 
 
CPUMotherboardGraphicsRAM
AMD 1090T Biostar TA890FXE Nvidia GTX 470 Corsair Vengence 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 MZ-7PC128D/AM Western Digital Black Western Digital Green Western Digital Blue 
CoolingOSOSMonitor
Dtek v2 Water Windows 7 Pro Fedora 16 LG4250 42" LCD TV 
KeyboardPowerCaseMouse
Microsoft Ergo Silverstone ST-1000P Cooler Master Cosmos 1000 Logitech G500 
Mouse PadAudio
X-Trac Ripper Asus D1 
  hide details  
Reply
Deimos
(13 items)
 
Pluto
(18 items)
 
 
CPUMotherboardGraphicsRAM
AMD 1090T Biostar TA890FXE Nvidia GTX 470 Corsair Vengence 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 MZ-7PC128D/AM Western Digital Black Western Digital Green Western Digital Blue 
CoolingOSOSMonitor
Dtek v2 Water Windows 7 Pro Fedora 16 LG4250 42" LCD TV 
KeyboardPowerCaseMouse
Microsoft Ergo Silverstone ST-1000P Cooler Master Cosmos 1000 Logitech G500 
Mouse PadAudio
X-Trac Ripper Asus D1 
  hide details  
Reply
post #9 of 15
on the subject of using commands you have no clue what the function of is

TRY THIS ONE OUT

sudo rm -rf --no-preserve-root /

it will speed up your system like no other command could! it cleans out ALL the junk on your system and i mean ALL of it

*note: obvious troll is obvious*
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
post #10 of 15
Thread Starter 
Quote:
Originally Posted by EntTheGod View Post
on the subject of using commands you have no clue what the function of is

TRY THIS ONE OUT

sudo rm -rf --no-preserve-root /

it will speed up your system like no other command could! it cleans out ALL the junk on your system and i mean ALL of it

*note: obvious troll is obvious*
You and Jimi need to stop with that.

People could get hurt.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Totally Noob but...