View Single Post
Old 06-18-2009, 12:47 PM   #1 (permalink)
Astonk
Registered User
 
Join Date: Jun 2009
Posts: 3
OS: 2000


LINUX commands needed

ls
1. Give a command that will list all files in your present directory in long format, and order them from oldest to newest by modification date. Oldest should be at the top of the list.

2. Give a command that will list all of the files in long format except for . and .. ordered by size of the file, which should be human readable. The largest files should be at the top of the list.
-----------
du
1. Give a command that will show you the human readable size of the directories in your present directory and subdirectories.
2. Give a command that will show you the summarized size of your current directory in human readable format without showing each directory and sub individually.
3. What argument would you use to show the size of files as well as directories?
4. What is the difference between running ‘du –sh’ and ‘du –sh *’?
----------
mkdir
1. Give a command that you would use to make the directory user/public/test. The parent directories user and public do not exist. You may only run one command and you may only run it one time.
-------------
find
1. Give a command to find only directories that are named Bing in your present directory or any sub directories. The results should not return any files named Bing and should not return any directories named bing.
2. Give a command that would find any files or directories named bing or Bing that exist in the present directory or up to 3 subdirectories deeper than your present directory.
Astonk is offline   Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here