disk usage linux command
du -h –max-depth=1 folder-name
use this command line to display disk usege in folder “folder-name“
du -h –max-depth=1 folder-name
use this command line to display disk usege in folder “folder-name“
File Commands
ls
directory listing
ls -al
formatted listing with hidden files
cd dir
change directory to dir
cd
change to home
pwd
show current directory
mkdir dir
create a directory dir
rm file
delete file
rm -r dir
delete directory dir
rm -f file
force remove file
rm -rf dir
force remove directory dir
cp file1 file2
copy file1 to file2
cp -r dir1 dir2
copy dir1 to dir2; create dir2 if it doesn’t exist
mv file1 file2
rename or [...]
Variables are a way of passing information from the shell to programs when you run them. Programs look “in the environment” for particular variables and if they are found will use the values stored. Some are set by the system, others by you, yet others by [...]
We have many public domain and commercial software packages installed on our systems, which are available to all users. However, students are allowed to download and install small software packages in their own home directory, software usually only useful to them personally.
There are a number of [...]
quota
All students are allocated a certain amount of disk space on the file system for their personal files, usually about 100Mb. If you go over your quota, you are given 7 days to remove excess files.
To check your current quota and how much of it you have used, type
% quota -v
df
The df [...]