Linux Basic Commands Part 1
Linux basic command Line
The first command is date. This command displays the current time and date.
# date
Second command is cal which, by default, displays a calendar of the current month.
# cal
To see the current amount of free space on your disk “The df command reports how much disk space we have” enter df Command:
# df
To check the information of disk usage of files and directories on a machine. du command reports how much disk space is being consumed by the files and folders.
# du
Check disk usage in Human Readable Format.
# du -h
display the amount of free memory, enter the free command.
# free
To change your working directory, enter cd command.
# cd
To display the current working directory, we use the pwd (print working directory) command.
# pwd
To list the files and directories in the current working directory enter ls
Command.
# ls
We use ls -l for long listing format
# ls -l
Use ls -lt sort by modification time
# ls -lt
List all files, even those with names that begin with 'a' “. ... “ which are normally not listed (example hidden).
# ls -la
display file sizes in human readable format
# ls -lh
# ls -h
Comments
Post a Comment