In Linux (or generally, UNIX-like systems), all directories contain the entries:
.
is the relative reference to the current directory..
is the relative reference to the parent directory
Since you’re adding the -d
flag, it’ll list the directory itself, not its content. See ls --help
:
-d
list directory entries instead of contents, and do not dereference symbolic links
Related Posts:
- What’s a .sh file?
- How to set the environmental variable LD_LIBRARY_PATH in linux
- What’s a .sh file?
- How to fix ‘sudo: no tty present and no askpass program specified’ error?
- How do I grep recursively?
- Why do you need to put #!/bin/bash at the beginning of a script file?
- How do I find all files containing specific text on Linux?
- Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- Amazon Linux: apt-get: command not found
- How to extract C source code from .so file?
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- How to exclude a directory in find . command
- How can I exclude directories from grep -R?
- Changing the resolution of a VNC session in linux
- How to restart Postgresql
- How to exclude a directory in find . command
- mysql_config not found when installing mysqldb python interface
- Shell command to tar directory excluding certain files/folders
- Argument list too long error for rm, cp, mv commands
- Difference between using “chmod a+x” and “chmod 755”
- Meaning of exit status 1 returned by linux command
- tar removing leading ‘/’ from member names
- Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”
- Extract file basename without path and extension in bash
- Given two directory trees, how can I find out which files differ by content?
- linux command to get size of files and directories present in a particular folder?
- screen Cannot open your terminal ‘/dev/pts/0’ – please check
- “Unable to find remote helper for ‘https'” during git clone
- How to use regex with find command?
- CentOS error – sudo: effective uid is not 0, is sudo installed setuid root?
- Bash script: bad interpreter
- What is the difference between /etc/rc.local and ~/.bashrc?
- Snort Message – WARNING: No preprocessors configured for policy 0
- How can I delete a user in linux when the system says its currently used in a process
- Command to change the default home directory of a user
- Can you Run Xcode in Linux?
- How do I find the MySQL my.cnf location
- Read and write to binary files in C?
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- wget returns “Unable to establish SSL connection”
- Is there an alternative sleep function in C to milliseconds?
- How to make rpm auto install dependencies
- Curl : connection refused
- How to install Android SDK on Ubuntu?
- How can I use grep to show just filenames on Linux?
- Apache server keeps crashing, “caught SIGTERM, shutting down”
- Bash export command
- Difference between exec, execvp, execl, execv?
- Retrieve last 100 lines logs
- What are various options / arguments for “./configure” in Linux
- Can’t upload media to my Raspberry Pi WordPress server
- WordPress Update – This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php
- How to configure both webserver and appserver for WordPress CMS?
- WordPress cloning issue
- How can I sort du -h output by size
- Anyone else experiencing high rates of Linux server crashes during a leap second day?
- What permissions should my website files/folders have on a Linux webserver?
- How to bind MySQL server to more than one IP address?
- Check if port is open or closed on a Linux server?
- How can I run Debian stable but install some packages from testing?
- Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server
- df in linux not showing correct free space after file removal
- In my /etc/hosts/ file on Linux/OSX, how do I do a wildcard subdomain?
- LVM dangers and caveats
- How to reconnect to a disconnected ssh session
- how to disable SSH login with password for some users?
- How do I sleep for a millisecond in bash or ksh
- Is it possible to detach a process from its terminal? (Or, “I should have used screen!”) [duplicate]
- What does Virtual memory size in top mean?
- tar – Remove leading directory components on extraction
- What version of RHEL am I using?
- How do I find the UUID of a filesystem
- How to add a timestamp to bash script log?
- best way to clear all iptables rules
- Is it possible to make Nginx listen to different ports?
- how do you create an ssh key for another user?
- How can I monitor hard disk load on Linux?
- How to copy file preserving directory path in Linux?
- Why does sudo command take long to execute?
- How to run command as user who has /usr/sbin/nologin as Shell?
- How do I list loaded Linux module parameter values?
- How can I get processor/RAM/disk specs from the Linux command Line? [duplicate]
- What is the maximum port number?
- Show all users and their groups/vice versa
- How to determine the hostname from an IP address in a Windows network?
- Heartbleed: how to reliably and portably check the OpenSSL version?
- swap partition vs file for performance?
- Does the “bs” option in “dd” really improve the speed?
- How to get TX/RX bytes without ifconfig?
- create home directories after create users
- How to apply a filter to real time output of `tail -f `?
- Best way to disable swap in Linux
- What should I do when I got the KEYEXPIRED error message after an apt-get update?
- Practical maximum open file descriptors (ulimit -n) for a high volume system
- How to remove invalid characters from filenames?
- How can I zip/compress a symlink?
- How should an IT department choose a standard Linux distribution?
- How to handle relative urls correctly with a reverse proxy