LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-01-2014, 01:31 PM   #1
AlexBB
Member
 
Registered: Mar 2014
Posts: 433

Rep: Reputation: Disabled
Ubuntu Terminal command dir


Hi there. It is my first post here. I am new to Linux. I run Windows 7, installed a Virtual Box and Ubuntu as a Guest OS. I just tried to use dir command. Help dir says that I can use two parameters which are rather important to me because they improve the visual assessment of the directories. They are -p and -v. They do not work. Either parameter does nothing promised in the help. The directories are supposed to be printed each on a separate line. They are still printed on one line with short space between them. Why? Thanks.

Last edited by AlexBB; 03-01-2014 at 01:33 PM.
 
Old 03-01-2014, 01:41 PM   #2
redd9
Member
 
Registered: Nov 2013
Location: Canada
Distribution: Ubuntu
Posts: 80
Blog Entries: 4

Rep: Reputation: 42
Could you post a screenshot of the output, please?
You can take a screenshot with the command
Code:
scrot
If you don't have scrot installed, type
Code:
sudo apt-get install scrot
 
Old 03-01-2014, 01:54 PM   #3
AlexBB
Member
 
Registered: Mar 2014
Posts: 433

Original Poster
Rep: Reputation: Disabled
Redd9, many thanks for the reply. Well, I installed scrot as you suggested and ran it. And what is next? Where is the screen image? Sorry about it. The dir -p and dir -v clearly do not work as far as I can see.

Last edited by AlexBB; 03-01-2014 at 01:57 PM.
 
Old 03-01-2014, 02:06 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,929

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Welcome to LinuxQuestions.

The help command displays information about the shells built in commands and help dir displays information about the directory stack command (dirs) vs the dir command located in /usr/bin. The man pages are the is the on line manual for find helping on a particular command. Look at man help. The linux command for viewing file and directories is ls (man ls).

Press q to exit man.

Some additional information about what you are trying to accomplish might be necessary, homework?

http://en.wikipedia.org/wiki/Man_page

Last edited by michaelk; 03-01-2014 at 02:14 PM.
 
Old 03-01-2014, 02:29 PM   #5
AlexBB
Member
 
Registered: Mar 2014
Posts: 433

Original Poster
Rep: Reputation: Disabled
OK, I found the .png file which should contain an image file (screen image). The problem is how to get it out of the VM and post here. I don't have a bidirectional connection between the VM and the host OS.
 
Old 03-01-2014, 02:51 PM   #6
AlexBB
Member
 
Registered: Mar 2014
Posts: 433

Original Poster
Rep: Reputation: Disabled
Hi there. It seems I took a screen image (with my own software) and posted it in attachment to this post. But where is the attachment? It is a big question.

Last edited by AlexBB; 03-01-2014 at 02:55 PM.
 
Old 03-01-2014, 03:01 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,929

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
I do not think I provided a clear explanation...

In a nutshell you are looking at documentation for one command but executing another. The bash shell which is what you are using in a terminal window has built in commands. help dir displays documentation for the built in dirs (directory stack) but in reality you are executing /usr/bin/dir.
 
Old 03-01-2014, 04:06 PM   #8
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,825

Rep: Reputation: 221Reputation: 221Reputation: 221
I'm not sure what you are wanting, why not use any of..
Code:
ls -l
or scroll up and down after
Code:
ls -R | less
Code:
ls --color
See
Code:
man ls
If you need help with man pages, read
Code:
man man
 
Old 03-01-2014, 08:53 PM   #9
AlexBB
Member
 
Registered: Mar 2014
Posts: 433

Original Poster
Rep: Reputation: Disabled
Thank you guys. It is an unfamiliar territory to me. I am on a learning curve.
 
Old 03-01-2014, 09:30 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,333
Blog Entries: 12

Rep: Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729
We were all newbies once.

About dot com has a good set of tutorials on Linux and you can find a wealth of resources at The Linux Documentation Project.

You can also find a lot of tutorials on YouTube; search for the topic you are interested in.

Last edited by frankbell; 03-01-2014 at 09:31 PM.
 
Old 03-02-2014, 10:26 PM   #11
AlexBB
Member
 
Registered: Mar 2014
Posts: 433

Original Poster
Rep: Reputation: Disabled
Michaelk, "Some additional information about what you are trying to accomplish might be necessary, homework?" What a strange thought! I am wondering what makes you think so? I am very curious. At my age? I am here not for self-disclosure, so this makes me even more intrigued.
 
Old 03-03-2014, 05:38 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I strongly recommend you bookmark and read this very good tutorial on the cmd line http://rute.2038bug.com/index.html.gz
 
Old 03-03-2014, 06:30 AM   #13
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 340
Blog Entries: 4

Rep: Reputation: 63
Just go:

Code:
man dir

From the man page
AUTHOR
Written by Richard M. Stallman and David MacKenzie.

Last edited by nigelc; 03-03-2014 at 06:33 AM. Reason: Add some more
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
copying files from home dir to another dir from another dir in a lower dir chomito44 Linux - General 5 10-19-2013 07:18 PM
tar dir and sub dir removing files but not existing not empty dir j-me Linux - General 2 08-12-2013 12:37 PM
How do I resize the terminal window from the command line in the gnome terminal QuIcKSpArK Linux - Newbie 5 04-21-2012 03:04 PM
How access the command line Terminal in Ubuntu linux? bmnb123 Linux - Newbie 2 04-10-2008 03:12 PM
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 03:57 PM


All times are GMT -5. The time now is 03:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration