Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I am using this command I got an error message, i.e.
$ls -alh
ls: NOt a recognized flag: h
Usage: ls [-1ACFHLNRSabcdefgiklmnopqrstuxEUX] [File...]
Will you provide me some book or document or any other material which helps me to learn the basics and understand everything, if I want to work as Unix Admin..
Thank you for your help and providing the link for the Linux Admin Guide...
I'd suggest you perform the following and report the results:
Code:
$ which ls
# When you get the outcome of the which command for ls, then give a long listing of ls, example:
$ which ls
/bin/ls
$ ls -l /bin/ls
-rwxr-xr-x 1 root root 104508 Mar 31 2012 /bin/ls
# Next get the version of ls which you have by typing "ls --version", sample output following:
$ ls --version
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
$
# All of this is to tell whether or not you're using actual ls or if ls is a symbolic link to something
# called busybox which emulates ls and may provide different features.
Following this, other things to offer to the forum would be the version of Linux you have, including both the kernel and distribution name. Some things to try to get this information are:
Code:
$ cat /etc/*-release
# This will output the information in that file to show your release information.
# Another command is 'lsb_release -a' which also can print out the release if that command is available.
$ lsb_release -a
# A final check would be to determine whether or not there is an alias for the ls command.
# If you type 'alias' you will see all aliases, therefore see if there is one assigned for ls.
The concerns here by me and others are that you don't seem to have a properly working ls command, either because there is an alias, because ls is very old, or because ls is run out of busybox.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.