click below
click below
Normal Size Small Size show me how
Linux
Linux Command
Question | Answer |
---|---|
How do you get the current date | date |
How do you get a calendar? | cal |
How do you find out disk space information | df |
How do you find out memory information | free |
How do you show the current working directory? | pwd |
How do you change directory | cd |
How do you list directory contents | ls |
cd - | Changes to the previous working directory |
cd ~user_name | Changes the working directory to the home directory of the user_name...for example cd ~ferris will change the directory to the home directory of the use "ferris" |
ls -a | Show all files, including those hidden (start with a . ) |
ls -l | Gives the long format of a directory information |
ls -A | Almost all...same as -a except it doesn't like the current directory or the parent directory |
ls -d | Using this option will give information about the directory...used in conjunction with -l for even more data |
ls -F | Appends an indicator character to the end of a listed name...for example, a / if the name is a directory |
ls -h | Makes things in human readable format...for example, in conjunction with -l, will display bytes as 1.0M or 360B |
ls -r | Reverses the normal order of the list |
ls -S | sort results by file size |
ls -t | sort by modification time |
How do you tell a command's type? | type |
How do you display an executable's location? | which |
How do you get a command's documentation? | help |
How do you search all man pages for a particular word | apropos |
Where do you redirect output that you just want to throw away? | /dev/null |
How do you get realtime updates on changes to a file | tail -f |
How do you see realtime stats of processes running | top |