LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2013, 09:00 AM   #1
pavanaaroshni
LQ Newbie
 
Registered: Aug 2013
Posts: 9

Rep: Reputation: Disabled
Command line programs?


I have always been so/so on the linux command line. Does anyone have some onliners to share to get me started? I'd like to have some to look at, that i know are being used daily, so that i can research them some
 
Old 08-05-2013, 09:16 AM   #2
Pyplate
LQ Newbie
 
Registered: Jun 2013
Location: Worcestershire, UK
Distribution: Ubuntu,lubuntu,raspbian
Posts: 17
Blog Entries: 30

Rep: Reputation: Disabled
Here's a good place to start: https://help.ubuntu.com/community/Be.../BashScripting and http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html.
 
Old 08-05-2013, 09:34 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
nmap commands
nmap --reason 192.168.1.1
nmap --packet-trace 192.168.1.1
nmap --iflist

find name of glibc's dynamic linker
readelf -l /bin/bash | grep interpreter

get urls from website
lynx -dump -listonly http://www.linuxfromscratch.org/lfs/.../packages.html

download all urls from website
lynx -dump -listonly -nonumbers http://www.linuxfromscratch.org | xargs -n1 wget
or
lynx -dump -listonly -nonumbers http://www.linuxfromscratch.org | egrep '(\.xz|\.bz2|\.gz|\.tar)' | xargs -n1 wget

debug filesystem
debugfs

make multiple directories
mkdir somedirectory/{this that other}

dd with progress
dd if=/dev/zero | pv | dd of=/dev/somedrive

repeat last command but change word1 to word2
^word1^word2^

remove trailing date from sql files
for f in *.sql; do
mv -- "$f" "${f%%-*}.sql"
 
2 members found this post helpful.
Old 08-05-2013, 09:42 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Not being dismissive but the bash man page is very informative and written in a way that people can understand it.
 
Old 08-05-2013, 01:00 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Over here you asked why Linux sucks so baddly, and here, you're asking for help?

If Linux is hard you're doing it wrong.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Command-Line Programs skibud2 Linux - Software 1 03-18-2007 06:17 PM
get programs on net from command line brianetilley Linux - Networking 1 12-07-2005 09:42 AM
launching programs from command line in FS dertien Linux - Software 1 11-26-2004 09:27 AM
Launching Programs From the Command Line Chryzmo Linux - Software 5 03-03-2004 08:00 PM
Running programs from Command Line SirLostalot Linux - Newbie 1 11-11-2002 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration